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);
}
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);
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us