SetNativeParent() public method

public SetNativeParent ( ISessionM nativeParent ) : void
nativeParent ISessionM
return void
Esempio n. 1
0
    private void CreateListenerObject()
    {
        listener = sessionMGameObject.gameObject.AddComponent <SessionMEventListener>();

        sessionMObject.CallStatic("setCallbackGameObjectName", sessionMGameObject.gameObject.name);

        listener.SetNativeParent(this);

        if (callback != null)
        {
            listener.SetCallback(callback);
        }
    }
Esempio n. 2
0
    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);
        }
    }