Ejemplo n.º 1
0
 public override void OnDestroy()
 {
     if (m_NativeController != null)
     {
         m_NativeController.Destroy();
         m_NativeController = null;
     }
 }
Ejemplo n.º 2
0
        public override void OnDestroy()
        {
#if !UNITY_EDITOR_OSX
            if (m_NativeController != null)
            {
                m_NativeController.Destroy();
                m_NativeController = null;
            }
#endif
        }
 private void InitNativeController()
 {
     m_NativeController = new NativeController();
     if (m_NativeController.Init())
     {
         Inited = true;
         NRDebug.Log("NRControllerProvider Init Succeed");
     }
     else
     {
         m_NativeController = null;
         Debug.LogError("NRControllerProvider Init Failed !!");
     }
     m_NeedInit = false;
 }
Ejemplo n.º 4
0
        private void InitNativeController()
        {
            m_NativeController = new NativeController();
#if !UNITY_EDITOR_OSX
            if (m_NativeController.Init())
            {
                Inited = true;
                NRDebugger.Log("NRControllerProvider Init Succeed");
            }
            else
            {
                m_NativeController = null;
                Debug.LogError("NRControllerProvider Init Failed !!");
            }
#endif
            m_NeedInit = false;
        }
Ejemplo n.º 5
0
        private void InitNativeController()
        {
            m_NativeController = new NativeController();
            if (m_NativeController.Init())
            {
                Inited = true;
                NRDebugger.Log("NRControllerProvider Init Succeed");
            }
            else
            {
                m_NativeController = null;
                NRDebugger.LogError("NRControllerProvider Init Failed !!");
            }

#if !UNITY_EDITOR
            NRDebugger.Log("[NRInput] version:" + GetVersion(0));
#endif
            m_NeedInit = false;
        }