|
is it possible to do something along the lines of this (in Javascript) thanks in advance, Chris
(comments are locked)
|
|
Yes, you can do that using the following syntax: This is funny, because Unity doesn't allow anonymous functions before version 3.0. Your post though is from back in 2009. So - How the hell did you get that to work?!
Nov 29 '10 at 06:19 AM
Whimsical
.. and when using #pragma strict (eg on Android or iPhone), the data type of a function is Function (eg, use "function boo(passedFunction : Function) {". ( http://answers.unity3d.com/questions/9594/data-type-of-unityscript-function-object.html )
Apr 29 '12 at 08:20 AM
pansapiens
(comments are locked)
|
