Пример #1
0
    IEnumerator DelayLoadMainMenu()
    {
        yield return(new WaitForSeconds(5));

        Cursor.lockState = CursorLockMode.None;
        Cursor.visible   = true;
        sceneManager.LoadScene("Main Menu");
    }