public static void PauseGame(bool isPause) { if (isPause) { Time.set_timeScale(0f); TimerHeap.Pause(isPause); } else { Time.set_timeScale(AppConst.GlobalTimeScale); TimerHeap.Pause(isPause); } }