public override void OnDestroy() { if (m_NativeController != null) { m_NativeController.Destroy(); m_NativeController = null; } }
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; }
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; }
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; }