Low FPS while playing animations.

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.

It is because when you call GetKey it gets called while the key is pressed.
You should replace it with GetKeyDown.
Small notice : instead of “e” use KeyCode

You could try to use GetKeyDown instead of GetKey. Don’t know if it changes anything but at least it only runs it once.