public void OnEnable() { vrGestureManager = (VRGestureManager)target; if (vrGestureManager == null) { vrGestureManager = VRGestureManager.Instance; } }
public virtual void Awake() { DontDestroyOnLoad(this.gameObject); if (instance == null) { instance = this; instance.Init(); } }