private IEnumerator ToTitle() { audioSrc.PlayOneShot(cancelSFX); yield return(new WaitForSeconds(0.5f)); screensTransitionManager.ToTitle(); }
// Returns the game to the title screen public void LoadMenu() { pauseMenuUI.SetActive(false); Time.timeScale = 1f; isGamePaused = false; screensTransitionManager.ToTitle(); }
// ===== Return to title after set duration ====== private void ToTitle() { Debug.Log("Podium returning to title..."); controlsManager.SwitchAllControllersToUIMode(); foreach (Transform child in transform) { Destroy(child.gameObject); } platforms.SetActive(true); screensTransitionManager.ToTitle(); }
private IEnumerator Back(bool inWalkthrough) { audioSrc.PlayOneShot(cancelSFX); yield return(new WaitForSeconds(0.5f)); if (inWalkthrough) { screensTransitionManager.ToInstructions(); } else { screensTransitionManager.ToTitle(); } }