public override void Enter() { GameObject gameOverObject = UIManager.GetInstance().InstantiateForegroundUI(UIManager.GetInstance().GameOverUI); _gameOverUI = gameOverObject.GetComponent<GameOverUI>(); _gameOverUI.Init(_score); _gameOverUI.MainMenuPressed += OnMainMenuPressed; _gameOverUI.RetryPressed += OnRetryPressed; }
public static void Show(TeamType winTeam) { UIManager.instance.ShowPanel(Name); instance.winTeam = winTeam; instance.Init(); }