Beispiel #1
0
 void SetMusic(Global.Scenes currentScene)
 {
     if (currentScene == Global.Scenes.Id)
     {
         Music.clip = IdMusic;
         Music.Play();
     }
 }
Beispiel #2
0
    public void BeginLoadScene(Global.Scenes sceneToLoad)
    {
        if (OnLoadLevel != null) {
            OnLoadLevel(sceneToLoad);
        }

        targetScene = sceneToLoad;
        loadingScene = true;
    }
Beispiel #3
0
    public void BeginLoadScene(Global.Scenes sceneToLoad)
    {
        if (OnLoadLevel != null)
        {
            OnLoadLevel(sceneToLoad);
        }

        targetScene  = sceneToLoad;
        loadingScene = true;
    }
Beispiel #4
0
 void TransitionIntoScene(Global.Scenes currentScene = Global.Scenes.Id)
 {
     StartCoroutine(LerpCanvasOpacity(0.0f));
 }
Beispiel #5
0
 void TransitionOutOfScene(Global.Scenes sceneToLoad = Global.Scenes.Id)
 {
     StartCoroutine(LerpCanvasOpacity(1.0f));
 }