public SetNativeParent ( ISessionM nativeParent ) : void | ||
nativeParent | ISessionM | |
Результат | void |
private void CreateListenerObject() { listener = sessionMGameObject.gameObject.AddComponent <SessionMEventListener>(); sessionMObject.CallStatic("setCallbackGameObjectName", sessionMGameObject.gameObject.name); listener.SetNativeParent(this); if (callback != null) { listener.SetCallback(callback); } }
private void CreateListenerObject() { listener = sessionMGameObject.gameObject.AddComponent <SessionMEventListener>(); SMSetCallbackGameObjectName(sessionMGameObject.gameObject.name); Debug.Log("Setting Callback Object: " + sessionMGameObject.gameObject.name); listener.SetNativeParent(this); if (callback != null) { listener.SetCallback(callback); } }
private void CreateListenerObject() { listener = sessionMGameObject.gameObject.AddComponent <SessionMEventListener>(); using (AndroidJavaObject activityObject = GetCurrentActivity()) { activityObject.CallStatic("setCallbackGameObjectName", sessionMGameObject.gameObject.name); } listener.SetNativeParent(this); if (callback != null) { listener.SetCallback(callback); } }
private void CreateListenerObject() { listener = sessionMGameObject.gameObject.AddComponent<SessionMEventListener>(); sessionMObject.CallStatic("setCallbackGameObjectName", sessionMGameObject.gameObject.name); listener.SetNativeParent(this); if(callback != null) { listener.SetCallback(callback); } }
private void CreateListenerObject() { listener = sessionMGameObject.gameObject.AddComponent<SessionMEventListener>(); using (AndroidJavaObject activityObject = GetCurrentActivity()) { activityObject.CallStatic("setCallbackGameObjectName", sessionMGameObject.gameObject.name); } listener.SetNativeParent(this); if(callback != null) { listener.SetCallback(callback); } }
private void CreateListenerObject() { listener = sessionMGameObject.gameObject.AddComponent<SessionMEventListener>(); SMSetCallbackGameObjectName(sessionMGameObject.gameObject.name); Debug.Log("Setting Callback Object: " + sessionMGameObject.gameObject.name); listener.SetNativeParent(this); if(callback != null) { listener.SetCallback(callback); } }