public void MainMenu() { SceneManagerScript.LoadMainMenuScene(); Time.timeScale = 1f; SoundManagerScript.Instance.KillAllSounds(); }
// Use this for initialization IEnumerator Start() { splashImage.canvasRenderer.SetAlpha(0.0f); splashImage2.canvasRenderer.SetAlpha(0.0f); FadeIn(splashImage); yield return(new WaitForSeconds(2f)); FadeOut(splashImage); yield return(new WaitForSeconds(3f)); FadeIn(splashImage2); yield return(new WaitForSeconds(2f)); FadeOut(splashImage2); yield return(new WaitForSeconds(3f)); SceneManagerScript.LoadMainMenuScene(); }
IEnumerator Start() { SoundManagerScript.Instance.PlayBGM(AudioClipID.BGM_MAIN_MENU); splashImage.canvasRenderer.SetAlpha(0.0f); splashImage2.canvasRenderer.SetAlpha(0.0f); FadeIn(splashImage); yield return(new WaitForSeconds(3f)); FadeOut(splashImage); yield return(new WaitForSeconds(3f)); FadeIn(splashImage2); yield return(new WaitForSeconds(3f)); FadeOut(splashImage2); yield return(new WaitForSeconds(3f)); SceneManagerScript.LoadMainMenuScene(); }
public void MainMenu() { SceneManagerScript.LoadMainMenuScene(); }
public void LoadMainMenu() { SoundManagerScript.Instance.PlaySFX(AudioClipID.SFX_TAP); SceneManagerScript.LoadMainMenuScene(); }