IEnumerator FadeIn(float fFadeInTime) { var nextRoutine = CoroutineManager.Instance.AddFadeCoroutine(this, spriteBlind, CoroutineManager.Instance.CreateFadeCoroutine(spriteBlind, 0, 1.0f, fFadeInTime)); CoroutineManager.Instance.AddNextCoroutine(this, nextRoutine, coFadeOut); CoroutineManager.Instance.AddNextCoroutine(this, nextRoutine, GoToNextScene(_strNextScene)); yield return(CoroutineManager.End()); }
IEnumerator DestroyRoutine() { Destroy(this.gameObject); yield return(CoroutineManager.End()); }
IEnumerator FadeOut(float fFadeOutTime) { var nextRoutine = CoroutineManager.Instance.AddFadeCoroutine(this, spriteBlind, CoroutineManager.Instance.CreateFadeCoroutine(spriteBlind, 1, 0, fFadeOutTime)); yield return(CoroutineManager.End()); }