Hi Guys,
I have been trying to play an animation by doing the following:
var animname : String;
var canPlay : boolean;
function Update(){
if(canPlay){
animation.CrossFade(animname);
}
}
I get no errors in the console but at runtime the animation is not played.
I change the animname variable to the name of the animation when different things happen. It just won't work.
I'd really appreciate it if anyone could help!
↧