I need to set a method into the parameter of another function. So it should look something like this (just pseudocode):
void toDoAnotherMethod(anotherMethod()) {
anotherMethod();
}
void justMethod() {
*some stuff to do*
}
void Start() {
toDoAnotherMethod(justMethod);
}
But I totally don't understand how to do this thing in real code. Can somebody help me?
Thanks.