예제 #1
0
파일: output.c 프로젝트: mc-gulu/Hanoi-Core
void sendUnityMessage(const char* pMsg)
{
#ifdef __cplusplus
	if (pUnityMethod && pUnityObject)
		UnitySendMessage(pUnityObject, pUnityMethod, pMsg);
#endif
	if (pOutputCallback)
		pOutputCallback(pMsg);
}
예제 #2
0
void testFunction() {
    printf("Hello Out There!");
    UnitySendMessage("Cube", "setMyTexty", "I come from C");
}
예제 #3
0
std::string sendMessageToUnity(int type, std::string msg){
    char param[64] = {0};
    sprintf(param, "%d,%s", type, msg.c_str());
    UnitySendMessage("MetaUnity", "invokeCallback", param);
    return "";
}