Hi all, i have a question, i have been looking on the forums for 2 nights now, but i can’t find it so here goes:
I have to animate alot of doors in my scene, so therefore i wanted to make 1 script, i wanted to make a variable which would count for each animation.
But the problem is, i dont know how to get a variable for animations, because obviously, you cannot make it like this:
var animation : GameObject
because animations are not GameObjects but files in your projects folder.
So how i can make a var which can access animation files? Or doesn’t it work like that.
If there is another way to do this, all help is welcome.
Thanks in advance.