Exemplo n.º 1
0
 public void OnInputDown(InputEventData eventData)
 {
     if (LightUx != null)
     {
         SliderPanelScript sliderPanelScript = LightUx.GetComponentInChildren <SliderPanelScript>(true);
         if (sliderPanelScript != null &&
             (!sliderPanelScript.gameObject.activeSelf || sliderPanelScript.CurrentLight != this))
         {
             sliderPanelScript.Unhide(this);
         }
     }
 }
Exemplo n.º 2
0
 public void OnXboxInputUpdate(XboxControllerEventData eventData)
 {
     if (eventData.XboxA_Down)
     {
         if (LightUx != null)
         {
             SliderPanelScript sliderPanelScript = LightUx.GetComponentInChildren <SliderPanelScript>(true);
             if (sliderPanelScript != null &&
                 (!sliderPanelScript.gameObject.activeSelf || sliderPanelScript.CurrentLight != this))
             {
                 sliderPanelScript.Unhide(this);
             }
         }
     }
 }