可以跨GameObject、不用寫一長串去GetComponent就可以呼叫Method!
主要的參數如下:
SendMessage(函式的字串);
SendMessage(函式的字串,任意Object型態的參數);
SendMessage(函式的字串,SendMessageOptions);
SendMessage(函式的字串,任意Object型態的參數,SendMessageOptions);
SendMessage(函式的字串);
SendMessage(函式的字串,任意Object型態的參數);
SendMessage(函式的字串,SendMessageOptions);
SendMessage(函式的字串,任意Object型態的參數,SendMessageOptions);
AndroidManifest.xml
MainActivity.java (或是其它的Activity類的Class檔案)