private IEnumerator NavigateTitle() { audioSrc.PlayOneShot(selectSFX); yield return(new WaitForSeconds(0.5f)); selectionMade = false; if (selectionIndex == 0) { screensTransitionManager.ToCharacterSelect(); } else if (selectionIndex == 1) { screensTransitionManager.ToInstructions(); } else if (selectionIndex == 2) { screensTransitionManager.ToControls(); } else if (selectionIndex == 3) { screensTransitionManager.ToCharacters(); } else if (selectionIndex == 4) { screensTransitionManager.ToCredits(); } else if (selectionIndex == 5) { Application.Quit(); } }
private IEnumerator Back(bool inWalkthrough) { audioSrc.PlayOneShot(cancelSFX); yield return(new WaitForSeconds(0.5f)); if (inWalkthrough) { screensTransitionManager.ToInstructions(); } else { screensTransitionManager.ToTitle(); } }