void OnMouseDown() { parent.EnableWidget(!isEnable); isEnable = !isEnable; }
// Responds to taps from user: enables or disables widget depending on current state public void OnInputClicked(InputClickedEventData eventData) { parent.EnableWidget(!isEnable); isEnable = !isEnable; }