Is it possible to pass a function in as a parameter to another function in JS?
Yes, like so:
function SayHello(){
Debug.Log("Hello World");
}
function DoThis(func){
func();
}
DoThis(SayHello);
So, when you are defining the function that takes a function as a parameter, you leave the parameter definition as typless?
Actually, I believe Unity 3.0 has a function type now.
Great. Thanks for the help.
Posting this to get my post count off of 666.