コード例 #1
0
    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());
    }
コード例 #2
0
 IEnumerator DestroyRoutine()
 {
     Destroy(this.gameObject);
     yield return(CoroutineManager.End());
 }
コード例 #3
0
    IEnumerator FadeOut(float fFadeOutTime)
    {
        var nextRoutine = CoroutineManager.Instance.AddFadeCoroutine(this, spriteBlind, CoroutineManager.Instance.CreateFadeCoroutine(spriteBlind, 1, 0, fFadeOutTime));

        yield return(CoroutineManager.End());
    }