コード例 #1
0
 private bool SDKManagerInitEditor()
 {
     if (pvr_UnitySDKEditor == null)
     {
         HeadPose           = new Pvr_UnitySDKPose(Vector3.forward, Quaternion.identity);
         pvr_UnitySDKEditor = this.gameObject.AddComponent <Pvr_UnitySDKEditor>();
     }
     return(true);
 }
コード例 #2
0
    void OnDisable()
    {
#if UNITY_EDITOR
        if (pvr_UnitySDKEditor != null)
        {
            pvr_UnitySDKEditor = null;
        }
#endif
        StopAllCoroutines();
    }
コード例 #3
0
 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);
 }