private void PauseWith(Player player) { MonoBehaviourWrapper.OnUpdate -= HandleUpdate; view_ = ObjectPoolManager.CreateView <InGamePauseView>(GamePrefabs.Instance.InGamePauseViewPrefab); view_.Init(player, Resume, skipCallback_, restartCallback_); foreach (BattlePlayer battlePlayer in UnityEngine.Object.FindObjectsOfType <BattlePlayer>()) { battlePlayer.InputController.DisableInput(BattlePlayerInputController.PriorityKey.Paused); } }
private void ExitPause() { if (view_ != null) { ObjectPoolManager.Recycle(view_); view_ = null; } foreach (BattlePlayer battlePlayer in UnityEngine.Object.FindObjectsOfType <BattlePlayer>()) { battlePlayer.InputController.ClearInput(BattlePlayerInputController.PriorityKey.Paused); } }