so, i runed into a problem … i need to set a variable to true, then play an animation, and while the whole animation plays… the var needs to stay true, only when the anim is over, the var goes false… so i did this on my code
landingsequence = true;
animation.Play("land");
landingsequence = false;
nut what hapens is that the var toogles into true and then goes back to false in question of secounds… its not waiting til the animation “land” to end… but the way i placed the animation in the midle of true and false should make the script undestand that its supose to wait… right?.. well…
is there any if statement i can do?
… like…
if (animation “land” finish ) { landingsequence = false; }
else { do nothing }
or something like that? … if there is can someone post an example of how the code would look like?