protected virtual void OnDisable() { VRLog.Info("Unlisten!"); GUIQuadRegistry.Unregister(this); VRGUI.Instance.Unlisten(); }
protected virtual void OnEnable() { VRLog.Info("Listen!"); GUIQuadRegistry.Register(this); VRGUI.Instance.Listen(); }
protected virtual void OnDisable() { if (IsGUISource()) { VRLog.Info("Stop listening to GUI ({0})", name); GUIQuadRegistry.Unregister(this); VR.GUI.Unlisten(); } }
protected virtual void OnEnable() { if (IsGUISource()) { VRLog.Info("Start listening to GUI ({0})", name); GUIQuadRegistry.Register(this); VR.GUI.Listen(); } }