Answers for "destroy the game object if the animator has finished its animation"

C#
0

destroy the game object if the animator has finished its animation

// destroy the game object if the animator has finished its animation
		if (anim.GetCurrentAnimatorStateInfo(0).normalizedTime >= 1)
        {
			Destroy(gameObject);
		}
Posted by: Guest on August-12-2021

Code answers related to "destroy the game object if the animator has finished its animation"

C# Answers by Framework

Browse Popular Code Answers by Language