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); } } }
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); } } } }