예제 #1
0
 public void OnEnable()
 {
     vrGestureManager = (VRGestureManager)target;
     if (vrGestureManager == null)
     {
         vrGestureManager = VRGestureManager.Instance;
     }
 }
예제 #2
0
 public virtual void Awake()
 {
     DontDestroyOnLoad(this.gameObject);
     if (instance == null)
     {
         instance = this;
         instance.Init();
     }
 }