Let's While instead of for in coroutine~!


    IEnumerator FadeManually()
    {
        int i = 0;
            while (true)
            {
            if (i < _time.Length)
            {
                yield return new WaitForSeconds(_time[i]);
                StartCoroutine(FadeInitialize());
                //Debug.Log("int :" + i + " ,Time :" + _time[i]);
                i++;
            }
            else
            {
                //Debug.Log("All done!");
                yield break;
            }
            }
    }

댓글

이 블로그의 인기 게시물

About AActor!!! "UObject" has no member "BeginPlay"

UNREAL Android build information

Shader informations nice blog ~ ~