|
Java Code - yield WaitForSeconds
[Back]
Code:
//This will pause this part of the code till the time is up//it is use in a function
yield WaitForSeconds (.2);
//Like if you was to make a Win function
function Win()
{
anim.SetBool("Win",true);
yield WaitForSeconds (.2);
anim.SetBool("Win",false);
return;
}