private void Start() { SetUpGamePlayButtons(); timerObserver.IsCountdownOver() .Where(isOver => isOver) .Subscribe(_ => OnGameOver(gameOverSpiel_TimesUp)) .AddTo(this); playerStats.IsGameOver() .Where(isGameOver => isGameOver) .Subscribe(_ => OnGameOver(gameOverSpiel_Normal)) .AddTo(this); dialogueObserver.IsDialogueDone() .Subscribe(isDone => { if (isDone) { hudPanel.FireEvent(); timerSetter.StartCountdown(); } else { hudPanel.CancelNow(); timerSetter.PauseCountdown(); } }) .AddTo(this); SetUIStartingState(); }
private void SetUIStartingState() { gameOverPanel.CancelNow(); LogUtil.PrintInfo(gameObject, GetType(), "HudPanel FireEvent..."); hudPanel.FireEvent(); }