public override IEnumerator TransitionInAsync() { yield return(new WaitForEndOfFrame()); CocoAudio.PlaySound(CocoAudioID.Button_Click_07); int index = 0; while (index < m_CurPlayIndexs.Count) { int[] idxs = m_CurPlayIndexs [index]; foreach (int idx in idxs) { PlayItem(idx, true); } index++; yield return(new CCWait(m_PlayItemTime - m_DelayTime)); } m_Loading.gameObject.SetActive(true); yield return(new CCWait(0.3f)); // CocoAudio.PlaySound (Game.CocoAudioID.Contest_Cards_In); LeanTween.moveLocalY(m_Logo.gameObject, m_LogoTargetY, 0.8f).setEase(LeanTweenType.easeOutBack).setIgnoreTimeScale(true); yield return(new CCWait(0.8f)); }
public override IEnumerator TransitionOutAsync() { m_Loading.gameObject.SetActive(false); CocoAudio.PlaySound(CocoAudioID.Button_Click_07); yield return(new WaitForEndOfFrame()); LeanTween.moveLocalY(m_Logo.gameObject, 800, 0.5f).setEase(LeanTweenType.easeInBack).setIgnoreTimeScale(true); yield return(new CCWait(0.3f)); m_CurPlayIndexs.Reverse(); int index = 0; while (index < m_CurPlayIndexs.Count) { int[] idxs = m_CurPlayIndexs [index]; foreach (int idx in idxs) { PlayItem(idx, false); } index++; yield return(new CCWait(m_PlayItemTime - m_DelayTime)); } yield return(new CCWait(0.65f)); foreach (var t in m_Images) { GameObject.Destroy(t.gameObject); } Debug.LogError(Time.time + ": ----- end" + m_Logo.transform.localPosition); }