public void Init(GameModesController gameModesController) { highScoreUI.Init(); menuUI.OnPlay += (duration, slots) => OnPlay?.Invoke(duration, slots); highScoreUI.OnClose += ToMenu; gameModesController.OnGameStart += ToPlay; gameModesController.OnGameEnd += ToHighScores; menuUI.Deactivate(); playUI.Deactivate(); highScoreUI.Deactivate(); ToMenu(); }
void BackToGame() { menu.Deactivate(); }