This is my code for my script
var check = false;
function Update () {
if(animation.isPlaying){
check = false;
}
if(!animation.isPlaying){
check = true;
}
}
I am using a simple technique to check if unity recognises what I want it to but it doesn't, the check box in the inspector when unity is running stays unchecked, could someone help, all I am currently stuck on is unity not recognising that there isn't any animations playing, yet it doesn't. I even tried to make both of them make the check variable true but it still doesn't work
↧