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