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;
}
}
}
댓글
댓글 쓰기