コード例 #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);
         }
     }
 }
コード例 #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);
             }
         }
     }
 }