I'm using javascript write our Game in unity3d. I use variable store the function and call it somewhere such as:
var foobar;
function test() {
... do something;
}
function Start () {
foobar = test;
}
Then I can call foobar as a funciton directly.
But when I add #pragma strict at the top of this script. It comes error that foobar need to be strong type. So I don't how can I fullfil the job above in #pragma strict.
Thanks in advance.