hello , i made a door ( in blender) and i animated in unity i done a script and it work perfectly but when i want to duplicate it the second door moves position where my first door is. and i don’t know if its the methode or the script problem. here the script in case.
var Target : GameObject;
function Start () {
}
function OnTriggerEnter ( player : Collider ){
if ( player.tag == "Player"){
GameObject.Find( "door").animation.Play ( "openD" );
}
}
function OnTriggerExit ( player : Collider ){
if ( player.tag == "Player"){
yield WaitForSeconds (3);
GameObject.Find( "door").animation.Play ( "closeD" );
}
}
dsada
2
my best guess is you have the same problem that this guy had:
http://forum.unity3d.com/threads/animation-position-jump.26943/
EDIT: I edited the link, because that not that i wanted to link
well at the end i made a model in blender made it own animation and it worked better. thank you anyways.