private void OnTriggerEnter(Collider other) { if (other.CompareTag("ball")) { GameLevelManager.DestroyBall(other.gameObject); if (GameLevelManager.State == GameLevelManager.GameState.Playing) { GameCoordinator.Instance.Health--; if (GameCoordinator.Instance.Health == 0) { GameLevelManager.ChangeState(GameLevelManager.GameState.Lost); } } } }