| System/Realm/RealmAnimationBehaviour.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/Realm/RealmStageBehaviour.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/Realm/RealmWin.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
System/Realm/RealmAnimationBehaviour.cs
@@ -35,6 +35,10 @@ 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(); } @@ -51,9 +55,9 @@ 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); } } } @@ -88,11 +92,14 @@ { 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) { @@ -161,8 +168,9 @@ { foreach (var realmStage in m_RealmStages) { if (realmStage.animIndex == 0) if (realmStage.animIndex == 0 || realmStage.animIndex == 1) { realmStage.Dispose(); realmStage.gameObject.SetActive(false); } else @@ -186,6 +194,10 @@ 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; } System/Realm/RealmStageBehaviour.cs
@@ -69,13 +69,27 @@ if (animator != null) { animator.Play(levelUp ? "open" : "idle", 0); if (levelUp) { StartCoroutine(Co_DelayEffect(animator)); } } } } IEnumerator Co_DelayEffect(Animator animator) { yield return WaitingForSecondConst.WaitMS300; if (animator != null) { animator.Play("idle", 0, 0); } } public void Dispose() { model.selectRealmRefresh -= SelectRealmRefresh; StopAllCoroutines(); } private void SelectRealmRefresh() System/Realm/RealmWin.cs
@@ -269,15 +269,19 @@ var currentStage = model.GetRealmStage(cacheRealmLevel); if (cacheRealmLevel > realmLevel || stage > currentStage + 1) { model.selectRealm = realmLevel + 1; DisplayRealmStages(); } else { List<int> realms = null; if (model.TryGetRealmStages(currentStage, out realms)) if (cacheRealmLevel < realmLevel) { var index = realms.IndexOf(cacheRealmLevel); m_RealmAnimation.DisplayLevelUp(realms.IndexOf(cacheRealmLevel)); List<int> realms = null; if (model.TryGetRealmStages(currentStage, out realms)) { var index = realms.IndexOf(cacheRealmLevel); m_RealmAnimation.DisplayLevelUp(realms.IndexOf(cacheRealmLevel)); } } } cacheRealmLevel = realmLevel;