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