Answers for "unity wait for coroutine to finish"

C#
0

unity wait for animation to finish

//if animation with name "Attack" finished

if (anim.GetCurrentAnimatorStateInfo(0).IsName("Attack"))
{
	//do something
}
Posted by: Guest on September-08-2020
0

wait for a coroutine to finish unity

IEnumerator WaitingCoroutine() 
{
 	yield return StartCoroutine(CoroutineToWait());  
    
    //CoroutineToWait has finished
} 

IEnumerator CoroutineToWait() 
{
	yield return new WaitForSeconds(5.0f);
}
Posted by: Guest on June-24-2021

Code answers related to "unity wait for coroutine to finish"

C# Answers by Framework

Browse Popular Code Answers by Language