Hello everyone, my question is simple but I couldn’t figure out what should I do. When player is not aiming my gun has idle breath animation. I want to stop it when player starts aiming. But using Stop() just pauses the animation, not like stoping at all. I mean for example breath animation is in 30. frame, and player aims. Then it stops at 30. frame and as a result weapons position is being different. I want to make it actually stop, which means animation is going to go to the 0. frame and stop.
function Update(){
if(!aimed){
animation.CrossFade("idle");
}
if(aimed)
{
// some code that make it stop and go to the 0. frame again. (not .Stop(); code)
}
thanks ![]()
}