Beispiel #1
0
 private void HidePausePanel()
 {
     _showCoroutine?.Dispose();
     ReadyToPause.Invoke(false);
     OnPanelSwitched.Invoke(false);
     Move(MoveMode.Hide).AppendCallback(() => { _view.gameObject.SetActive(false); });
 }
Beispiel #2
0
 private void ShowPausePanel()
 {
     OnPanelSwitched.Invoke(true);
     _view.gameObject.SetActive(true);
     Move(MoveMode.Show);
     _elementTweens.ForEach(t => t.GoToEnd(MoveMode.Show));
     _showCoroutine = Pause().ToObservable().Subscribe();
 }