var anim : String;
var AnimationSource = gameObject;
function OnTriggerStay()
{
if(Input.GetKey("e"))
animation.Play("AirlockOpen", PlayMode.StopAll);
}
Hello,there.
I have about 4 Doors in my scene they open like airlock doors (one part to the left one to the right) they are moved by an animation.
So far so good, the code works but when i activate about 3 door at once the game´s Fps drop to an unplayable state. While playing about three animations i get like 10-15 Frames. Is this normal? the Doors are very low poly. What am i doing wrong? Is it because of the animations? Any help appreciated.
PS: Im from Austria so my english isnt the best.