Exemplo n.º 1
0
 protected override void OnDisable()
 {
     base.OnDisable();
     try
     {
         if (this.enabled)
         {
             _ListenersDictionary = _UISetup.EndApp(_ListenersDictionary, _EventsDictionary);
         }
     }
     catch
     {
         // Listeners not set in the scene yet.
     }
 }
Exemplo n.º 2
0
        protected override void OnDisable()
        {
            base.OnDisable();

            onValueChanged.RemoveListener(delegate { SetDropDownNewState(); });

            try
            {
                if (this.enabled)
                {
                    _ListenersDictionary = _UISetup.EndApp(_ListenersDictionary, _EventsDictionary);
                }
            }
            catch
            {
                // Listeners not set in the scene yet.
            }
        }
Exemplo n.º 3
0
        protected override void OnDisable()
        {
            base.OnDisable();

            try
            {
                if (this.enabled)
                {
                    _clickListenersDictionary = _uiSetup.EndApp(_clickListenersDictionary, _clickEventsDictionary);
                    _overListenersDictionary  = _uiSetup.EndApp(_overListenersDictionary, _overEventsDictionary);
                }
            }
            catch //(Exception e)
            {
                // Listeners not set in the scene yet.
                //Debug.Log("VRSF : The listeners for the VR Auto Fill Slider weren't set properly.\n" + e.ToString());
            }
        }