|
I'm using javascript write our Game in unity3d. I use variable store the function and call it somewhere such as:
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.
(comments are locked)
|
|
Well, i didn't use JS but it should work with the type
In C# you would create a delegate: HI, many thanks! It is the answer. I first try to use var foobar:function but failed. And your post just remind me it should be Function.
Mar 02 '11 at 11:57 AM
KarasAya
(comments are locked)
|
