public void startLevel(string level)
 {
     //AudioController.PlaySFX("Button_Click");
     //AudioController.PlaySFX("Scene_Transition");
     TWAudioController.StopBGMPlayed();
     TWTransition.FadeIn(() => TWLoading.LoadScene(level));
 }
예제 #2
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.Space))
     {
         TWTransition.FadeIn(() => TWLoading.LoadScene("MainScene"));
     }
 }
예제 #3
0
 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");
     }
 }
예제 #4
0
    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");
 }
예제 #6
0
 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");
 }
예제 #7
0
 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");
 }
예제 #8
0
 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");
 }
예제 #9
0
 public void BackToMenu()
 {
     TWTransition.FadeIn(() => TWLoading.LoadScene("MainMenu"));
 }
예제 #10
0
 public void Restart()
 {
     TWTransition.FadeIn(() => TWLoading.LoadScene("SampleScene"));
 }
예제 #11
0
 public void MainMenu()
 {
     TWAudioController.PlaySFX("click");
     Time.timeScale = 1f;
     TWTransition.FadeIn(() => TWLoading.LoadScene("MainMenu"));
 }
예제 #12
0
 public void Retry()
 {
     TWAudioController.PlaySFX("click");
     TWTransition.FadeIn(() => TWLoading.LoadScene(SceneManager.GetActiveScene().name));
 }
예제 #13
0
 public void Continue()
 {
     TWAudioController.PlaySFX("click");
     TWTransition.FadeIn(() => TWLoading.LoadScene("LevelSelect"));
 }
예제 #14
0
 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"));
 }
예제 #16
0
 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");
 }
예제 #17
0
 public void BackToMenu()
 {
     GameTime.GlobalTimeScale = 1f;
     TWAudioController.PlaySFX("UI", "click");
     TWTransition.ScreenTransition(TWTransition.TransitionType.DEFAULT_IN, .5f, () => TWLoading.LoadScene("EndingScene"));
     TWAudioController.PlaySFX("UI", "transition");
 }
예제 #18
0
    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");
        }
    }