Esempio n. 1
0
    /// <summary>
    /// Screen fade upon leaving the cabin
    /// </summary>
    /// <returns></returns>
    IEnumerator Fade_Over_Time()
    {
        local_Fade_To_Black.Fade_Out();
        doorAudioSource.Play();
        yield return(new WaitForSeconds(1.5f));

        local_Scene_Management.Load_Scene(sceneToLoad);
    }
Esempio n. 2
0
    public IEnumerator LoadNewScene()
    {
        if (navTarget != null)
        {
            yield return(new WaitForSeconds(1.8f));
        }
        if (local_Player_Location_Tracking != null)
        {
            Set_New_Checkpoint();
        }

        fade.Fade_Out();
        yield return(new WaitForSeconds(1.5f));

        sceneManagement.Load_Scene(sceneToLoad);
    }
Esempio n. 3
0
 public void LoadFinalScene()
 {
     sceneMan.Load_Scene("Hub Scene");
 }