Пример #1
0
    private void ExitBedroom(BedroomExit exit)
    {
        if (mStep == Step.Door4)
        {
            Quit(exit);
            return;
        }

        if (!fIsDebug)
        {
            exit.Open();
        }

        AdvancePast(mStep);
    }
Пример #2
0
    private IEnumerator QuitAsync(BedroomExit exit)
    {
        yield return(exit.PlayOpenSoundAsync());

        Application.Quit();
    }
Пример #3
0
 private void Quit(BedroomExit exit)
 {
     StartCoroutine(QuitAsync(exit));
 }