IEnumerator preTitle() { yield return(new WaitForSeconds(3f)); _TC.cenaPara = "Menu"; _TC.callFadeOut(); }
// Update is called once per frame void Update() { if (!verificado && !_AC.SourceMusic.isPlaying) { verificado = true; _TC.cenaPara = "gamePlay"; _AC.StartCoroutine("changeMusic", _AC.mGrass); _TC.callFadeOut(); } else { _AC.SourceMusic.loop = false; } }
public void loadScene(string sceneName) { _TC.cenaPara = sceneName; _TC.callFadeOut(); }