Animation question ?

How I can made unity play and animation for 10’ seconds and the switch to another one?:face_with_spiral_eyes:

This is probably a harder way to do it, but you could use a timer, I’m sure someone else could come up with a much more elegant solution though, using an array or something.

var setTime : float;
var Anim : boolean = false;

function Update(){
if(Input.GetKeyDown("f")){
setTime = Time.deltaTime;
Anim = true;
}
if(Anim){
if(Time.deltaTime - setTime <= 10){
animation.Play("Animation1");
}
else{
animation.Play("Two");
}
}
}

You could use iTween and animate with Tweens. There is a Delay Parameter, which does what you are looking for. Use oncomplete to fire the next Tween.

Well guys I figure out how to do it