private void ExitBedroom(BedroomExit exit) { if (mStep == Step.Door4) { Quit(exit); return; } if (!fIsDebug) { exit.Open(); } AdvancePast(mStep); }
private IEnumerator QuitAsync(BedroomExit exit) { yield return(exit.PlayOpenSoundAsync()); Application.Quit(); }
private void Quit(BedroomExit exit) { StartCoroutine(QuitAsync(exit)); }