예제 #1
0
 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;
 }
예제 #2
0
 public static void Show(TeamType winTeam)
 {
     UIManager.instance.ShowPanel(Name);
     instance.winTeam = winTeam;
     instance.Init();
 }