I think this might be a scope issue but I want to sure and/or find a better way to do it.
What I want but doesn’t work:
void SuperCoolFunction ()
{
Invoke("Someobject.SomeMethod", 2); // run method of object
}
Returns after 2 seconds “Trying to Invoke method: Someobject.SomeMethod couldn’t be called.”
But this code did work:
void SuperCoolFunction ()
{
Invoke("ThisOtherFunction", 2); // run method of object
}
void ThisOtherFunction () {
Someobject.SomeMethod();
}