Question by
chetan_dabhi · Sep 12, 2016 at 12:50 PM ·
animationsprite
Sprite animation cannot be play when player retry Unity
In my unity2d game I've create sprite animation like masroom bounce when first time I've start game animation play proper but when player die than retry game so animation cannot be play how solve this problem.
if (target.tag == "Masroom") {
target.gameObject.GetComponent<Animator> ().enabled = true;
playerRigidBody.velocity = new Vector2(0,8);
}
Comment
Your answer
Follow this Question
Related Questions
Same animation from multiple spritesheets 1 Answer
Big sprite textures with animations appears distorted and flickers, only in build. 2 Answers
Should weapons be different sprites? 1 Answer
Sprite Animation via script C# 1 Answer
How can i make the leg on the back be on top in mi sprite animation? 0 Answers