void EnableOrDisableMenu(bool menu_is_on) { menu_is_shown = menu_is_on; menu.SetActive(menu_is_shown); if (menu_is_shown) { DungeonMaster.Pause(); } else { DungeonMaster.Resume(); } }
public void MoveToLevel(int level) { StartCoroutine(FadeToBlackAndRestart(level)); DungeonMaster.Pause(); }
public void RespawnLevel() { StartCoroutine(FadeToBlackAndRestart(SceneManager.GetActiveScene().buildIndex)); DungeonMaster.Pause(); }