Ejemplo n.º 1
0
    /// <summary>
    /// Load the main menu scene after giving the player time to read their final score.
    /// </summary>
    /// <param name="delay">Delay before loading main menu.</param>
    /// <returns></returns>
    IEnumerator WaitLoadMainMenu(float delay)
    {
        yield return(new WaitForSeconds(delay));

        sceneChanges.RequestNewScene("MenuScene");
        yield return(null);
    }