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.
asked Mar 02 '11 at 09:47 AM
Well, i didn't use JS but it should work with the type
In C# you would create a delegate:
answered Mar 02 '11 at 10:33 AM