private bool SDKManagerInitEditor() { if (pvr_UnitySDKEditor == null) { HeadPose = new Pvr_UnitySDKPose(Vector3.forward, Quaternion.identity); pvr_UnitySDKEditor = this.gameObject.AddComponent <Pvr_UnitySDKEditor>(); } return(true); }
void OnDisable() { #if UNITY_EDITOR if (pvr_UnitySDKEditor != null) { pvr_UnitySDKEditor = null; } #endif StopAllCoroutines(); }
private bool SDKManagerInitEditor() { if (pvr_UnitySDKEditor == null) { pvr_UnitySDKEditor = this.gameObject.AddComponent <Pvr_UnitySDKEditor>(); } else { pvr_UnitySDKEditor = null; pvr_UnitySDKEditor = this.gameObject.AddComponent <Pvr_UnitySDKEditor>(); } return(true); }