Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

check if belnd tree plaiying

//start()
		float elapsed_seconds=1;
//update()
        float anim_time = anim.GetCurrentAnimatorStateInfo(0).normalizedTime - elapsed_seconds;
        if (anim_time > 0)
        {
            elapsed_seconds++;
            Debug.Log("Complete");  
        }else Debug.Log("Playing");
 
PREVIOUS NEXT
Tagged: #check #belnd #tree #plaiying
ADD COMMENT
Topic
Name
4+5 =