Invoke scope

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();
}

Invoke is called on a MonoBehaviour.
You may do :

ThisOtherComponent.Invoke ("Method", 2);

Same goes with SendMessage and BroadcastMessage.

Consider using interfaces if you want to call methods of other components.