Exemplo n.º 1
0
 private void OnMouseDown()
 {
     /* Make sure mouse isn't over GUI element to prevent clickthrough on GUI */
     if (!EventSystem.current.IsPointerOverGameObject())
     {
         info.changeAliveState(!info.getAlive());
     }
 }