Example #1
0
        protected virtual void OnDisable()
        {
            VRLog.Info("Unlisten!");
            GUIQuadRegistry.Unregister(this);

            VRGUI.Instance.Unlisten();
        }
Example #2
0
        protected virtual void OnEnable()
        {
            VRLog.Info("Listen!");
            GUIQuadRegistry.Register(this);

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