| | |
| | | {
|
| | | m_RealmStages[index].transform.localPosition = GetStagePosition(true, leftIndex);
|
| | | m_RealmStages[index].gameObject.SetActive(true);
|
| | | m_RealmStages[index].Display(i, false);
|
| | | m_RealmStages[index].Display(i, false, true, leftIndex);
|
| | | leftRatio = m_StageLeftRatio[leftIndex];
|
| | | leftIndex++;
|
| | | index++;
|
| | |
| | | {
|
| | | m_RealmStages[index].transform.localPosition = GetStagePosition(false, rightIndex);
|
| | | m_RealmStages[index].gameObject.SetActive(true);
|
| | | m_RealmStages[index].Display(i, i == end);
|
| | | m_RealmStages[index].Display(i, i == end, false, rightIndex);
|
| | | DisplayRemind(i);
|
| | | rightRatio = m_StageRightRatio[rightIndex];
|
| | | rightIndex++;
|
| | |
| | | Vector3 localpos = Vector3.zero.SetX(m_ContainerPoint.rect.width * ratio);
|
| | | return localpos;
|
| | | }
|
| | |
|
| | | #if UNITY_EDITOR
|
| | | private void LateUpdate()
|
| | | {
|
| | | for (int i = 0; i < m_RealmStages.Length; i++)
|
| | | {
|
| | | if (m_RealmStages[i].gameObject.activeSelf)
|
| | | {
|
| | | m_RealmStages[i].transform.localPosition = GetStagePosition(m_RealmStages[i].left, m_RealmStages[i].index);
|
| | | }
|
| | | }
|
| | | }
|
| | | #endif |
| | | }
|
| | | } |
| | | |