public void startLevel(string level) { //AudioController.PlaySFX("Button_Click"); //AudioController.PlaySFX("Scene_Transition"); TWAudioController.StopBGMPlayed(); TWTransition.FadeIn(() => TWLoading.LoadScene(level)); }
// Update is called once per frame void Update() { if (Input.GetKeyDown(KeyCode.Space)) { TWTransition.FadeIn(() => TWLoading.LoadScene("MainScene")); } }
public void EndTimeline() { if (TimelineManager.instance.Director.state != UnityEngine.Playables.PlayState.Playing) { TWTransition.ScreenTransition(TWTransition.TransitionType.DEFAULT_IN, 1f, () => TWLoading.LoadScene("Terrorcopter")); TWAudioController.PlaySFX("UI", "transition"); } }
IEnumerator End() { TimelineManager.instance.Director.Play(); yield return(new WaitForSeconds((float)TimelineManager.instance.Director.duration)); TWTransition.ScreenTransition(TWTransition.TransitionType.DEFAULT_IN, 1f, () => TWLoading.LoadScene("Terrorcopter")); }
public void GoToMainMenu() { TWAudioController.PlaySFX("UI", "click"); TWTransition.ScreenTransition(TWTransition.TransitionType.DEFAULT_IN, .5f, () => TWLoading.LoadScene("MainMenu")); TWAudioController.PlaySFX("UI", "transition"); }
public void BackToPanelBoss() { GameVariables.DIALOG_START_MESSAGE = "BOSS_PANEL"; TWAudioController.PlaySFX("UI", "click"); TWTransition.ScreenTransition(TWTransition.TransitionType.DOWN_IN, .5f, () => TWLoading.LoadScene("dialogFungus")); TWAudioController.PlaySFX("UI", "transition"); }
public void BackToMenu() { ItemManager.instance.ItemNull(); GameTime.GlobalTimeScale = 1f; TWAudioController.PlaySFX("UI", "click"); TWTransition.ScreenTransition(TWTransition.TransitionType.DOWN_IN, .5f, () => TWLoading.LoadScene("MainMenu")); TWAudioController.PlaySFX("UI", "transition"); }
public void BackToPanelItem() { GameTime.GlobalTimeScale = 1f; GameVariables.DIALOG_START_MESSAGE = "ITEM_PANEL"; TWAudioController.PlaySFX("UI", "click"); TWTransition.ScreenTransition(TWTransition.TransitionType.DEFAULT_IN, .5f, () => TWLoading.LoadScene("dialogFungus")); TWAudioController.PlaySFX("UI", "transition"); }
public void BackToMenu() { TWTransition.FadeIn(() => TWLoading.LoadScene("MainMenu")); }
public void Restart() { TWTransition.FadeIn(() => TWLoading.LoadScene("SampleScene")); }
public void MainMenu() { TWAudioController.PlaySFX("click"); Time.timeScale = 1f; TWTransition.FadeIn(() => TWLoading.LoadScene("MainMenu")); }
public void Retry() { TWAudioController.PlaySFX("click"); TWTransition.FadeIn(() => TWLoading.LoadScene(SceneManager.GetActiveScene().name)); }
public void Continue() { TWAudioController.PlaySFX("click"); TWTransition.FadeIn(() => TWLoading.LoadScene("LevelSelect")); }
public void PlayGame() { GameData.FirstPlay = true; GameVariables.DIALOG_START_MESSAGE = "MISSION_START"; TWAudioController.PlaySFX("UI", "click"); TWTransition.ScreenTransition(TWTransition.TransitionType.DEFAULT_IN, .5f, () => TWLoading.LoadScene("dialogFungus")); TWAudioController.PlaySFX("UI", "transition"); }
public void PlayGame() { TWTransition.FadeIn(() => TWLoading.LoadScene("MainScene")); }
public void Restart(string name) { GameTime.GlobalTimeScale = 1f; TWAudioController.PlaySFX("UI", "click"); TWTransition.ScreenTransition(TWTransition.TransitionType.DEFAULT_IN, .5f, () => TWLoading.LoadScene(name)); TWAudioController.PlaySFX("UI", "transition"); }
public void BackToMenu() { GameTime.GlobalTimeScale = 1f; TWAudioController.PlaySFX("UI", "click"); TWTransition.ScreenTransition(TWTransition.TransitionType.DEFAULT_IN, .5f, () => TWLoading.LoadScene("EndingScene")); TWAudioController.PlaySFX("UI", "transition"); }
public void BackToPanelBoss() { GameTime.GlobalTimeScale = 1f; GameVariables.DIALOG_START_MESSAGE = "BOSS_PANEL"; BGMStop(); if (GameTrackRate.BossKilled == 4) { TWAudioController.PlaySFX("UI", "click"); TWTransition.ScreenTransition(TWTransition.TransitionType.DEFAULT_IN, .5f, () => TWLoading.LoadScene("ToBeContinued")); TWAudioController.PlaySFX("UI", "transition"); } else { TWAudioController.PlaySFX("UI", "click"); TWTransition.ScreenTransition(TWTransition.TransitionType.DEFAULT_IN, .5f, () => TWLoading.LoadScene("dialogFungus")); TWAudioController.PlaySFX("UI", "transition"); } }