Exemplo n.º 1
0
 public void OnMouseOver()
 {
     if (Input.GetMouseButtonDown(0))
     {
         ParentScript.TriggerLeftButtonAction();
     }
     if (Input.GetMouseButtonDown(1))
     {
         ParentScript.TriggerRightButtonAction();
     }
 }