void SetMusic(Global.Scenes currentScene) { if (currentScene == Global.Scenes.Id) { Music.clip = IdMusic; Music.Play(); } }
public void BeginLoadScene(Global.Scenes sceneToLoad) { if (OnLoadLevel != null) { OnLoadLevel(sceneToLoad); } targetScene = sceneToLoad; loadingScene = true; }
void TransitionIntoScene(Global.Scenes currentScene = Global.Scenes.Id) { StartCoroutine(LerpCanvasOpacity(0.0f)); }
void TransitionOutOfScene(Global.Scenes sceneToLoad = Global.Scenes.Id) { StartCoroutine(LerpCanvasOpacity(1.0f)); }