void Handle(EndOfGameEvent e) { if (e.gameOver) { gameIsOver = true; } else { gameIsOver = false; } }
void Handle(EndOfGameEvent e) { constraint.ForEachGameObject((ego, ui) => { if (e.gameOver) { ui.gameOverPanel.gameObject.SetActive(true); Application.Quit(); } }); }