| | |
| | | m_RealmStages[i].transform.localPosition = GetPointPosition(i);
|
| | | m_RealmStages[i].animIndex = i;
|
| | | }
|
| | | foreach (var effectLine in m_EffectLines)
|
| | | {
|
| | | effectLine.StopImediatly();
|
| | | }
|
| | | m_ContainerEffectLine.localEulerAngles = Vector3.zero;
|
| | | DisplayEffectLines();
|
| | | }
|
| | |
| | | var level = realms[i] + 1;
|
| | | if (realmLevel >= level)
|
| | | {
|
| | | // m_EffectLines[i].Play();
|
| | | // var animator = m_EffectLines[i].target.GetAnimator();
|
| | | // animator.Play("idle", 0);
|
| | | m_EffectLines[i].Play();
|
| | | var animator = m_EffectLines[i].target.GetAnimator();
|
| | | animator.Play("idle", 0, 0);
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | {
|
| | | yield break;
|
| | | }
|
| | | //m_EffectLines[index].Play();
|
| | | //var animator = m_EffectLines[index].target.GetAnimator();
|
| | | //animator.Play("open", 0, 0);
|
| | | //yield return WaitingForSecondConst.WaitMS1500;
|
| | | //animator.Play("idle", 0);
|
| | | if (index != -1)
|
| | | {
|
| | | m_EffectLines[index].Play();
|
| | | var animator = m_EffectLines[index].target.GetAnimator();
|
| | | animator.Play("open", 0, 0);
|
| | | yield return WaitingForSecondConst.WaitMS500;
|
| | | animator.Play("idle", 0);
|
| | | }
|
| | | var realmStage = GetRealmStageBeha(index + 1);
|
| | | if (realmStage != null)
|
| | | {
|
| | |
| | | {
|
| | | foreach (var realmStage in m_RealmStages)
|
| | | {
|
| | | if (realmStage.animIndex == 0)
|
| | | if (realmStage.animIndex == 0 || realmStage.animIndex == 1)
|
| | | {
|
| | | realmStage.Dispose();
|
| | | realmStage.gameObject.SetActive(false);
|
| | | }
|
| | | else
|
| | |
| | | m_ContainerLine.gameObject.SetActive(false);
|
| | | foreach (var realmStage in m_RealmStages)
|
| | | {
|
| | | if (realmStage.animIndex == 1)
|
| | | {
|
| | | realmStage.gameObject.SetActive(true);
|
| | | }
|
| | | realmStage.animIndex = (realmStage.animIndex + 5) % 9;
|
| | | }
|
| | |
|