| | |
| | | [SerializeField] Button m_Close1;
|
| | | [SerializeField] Button m_Close2;
|
| | |
|
| | | [SerializeField] float m_Speed = 10f;
|
| | |
|
| | | public static int selectSkillId = 0;
|
| | |
|
| | | bool m_OpenDetail = false;
|
| | |
| | | {
|
| | | m_PositionTween.SetStartState();
|
| | | m_AlphaTween.SetStartState();
|
| | |
|
| | | m_CyclicScroll.IsPlaying = false;
|
| | |
|
| | | m_OpenDetail = false;
|
| | |
|
| | |
| | |
|
| | | m_CyclicScroll.Dispose();
|
| | | m_CyclicScroll.Init(datas);
|
| | | StartCoroutine(Co_Arrange(animationStep));
|
| | | StartCoroutine(Co_Arrange(animationStep, datas.Count > 2 ? 440 : 302));
|
| | | }
|
| | | }
|
| | |
|
| | | IEnumerator Co_Arrange(bool animationStep)
|
| | | IEnumerator Co_Arrange(bool animationStep, float height)
|
| | | {
|
| | | yield return null;
|
| | | if (animationStep)
|
| | | {
|
| | | var start = m_LayoutElement.preferredHeight;
|
| | | var intValue = (int)start;
|
| | | if (start > 302)
|
| | | if (start > height)
|
| | | {
|
| | | while (start > 302)
|
| | | while (start > height)
|
| | | {
|
| | | start -= Time.deltaTime * 10;
|
| | | start = Mathf.Max(302, start);
|
| | | start -= Time.deltaTime * m_Speed;
|
| | | start = Mathf.Max(height, start);
|
| | | m_LayoutElement.preferredHeight = start;
|
| | | if (intValue != (int)start)
|
| | | {
|
| | | intValue = (int)start;
|
| | | m_CyclicScroll.ReArrange();
|
| | | }
|
| | | yield return null;
|
| | | }
|
| | | yield return null;
|
| | | m_CyclicScroll.ReArrange();
|
| | | yield break;
|
| | | }
|
| | | }
|
| | |
| | | {
|
| | | m_CyclicScroll.DisplayAnimation(()=>
|
| | | {
|
| | | DisplayDetail();
|
| | | DisplayDetail(true);
|
| | | });
|
| | | }
|
| | | }
|