- Home /
Question by
kou · Aug 28, 2012 at 05:21 AM ·
instantiateclassplugins
Instantiate Timer Class in JavaScript.
I have a script which contains a timer function. I've put this script inside "Plugins" folder, since I need to access it quite often.
TimerScript.js
static funtion Timer(intervals:float){
}
Now if I multiple access this script simultaneously like TimerScript.Timer(0.3), it works only for one of the gameobject. Do I need to instantiate the timer class in every script attached to gameObjects? if so, how would you do this?
Thanks and have a great day!
Comment
Your answer