示例#1
0
    void Update()
    {
        if (HasDied() && !isGameOver)
        {
            isGameOver = true;
            foreach (PlayerController player in players)
            {
                player.SendMessage("kill");
            }
            fader.FadeTo("GameOver");
        }

        if (HasWon() && !isWin)
        {
            isWin = true;
            foreach (PlayerController player in players)
            {
                player.SendMessage("kill");
            }
            fader.FadeTo("Win");
        }

        if (Input.GetButtonDown("Cancel"))
        {
            SceneManager.LoadScene(0);
        }
    }
示例#2
0
 public void Continue()
 {
     if (levelToUnlock == 0)
     {
         sceneFade.FadeTo(menuScene);
     }
     else
     {
         sceneFade.FadeTo(nextLevel);
     }
 }
示例#3
0
 public void PlayGame()
 {
     sceneFader.FadeTo(levelOne);
 }
 public void StartGame()
 {
     WaveSpawner.EnemiesAlive = 0;
     sceneFade.FadeTo(levelToLoad);
 }
示例#5
0
文件: WinLvL.cs 项目: INao-mp/MNL
 public void Continue()
 {
     PlayerPrefs.SetInt("levelReached", levelToUnlock);
     sceneFader.FadeTo(nextLevel);
 }
示例#6
0
 public void Select(string levelName)
 {
     sceneFade.FadeTo(levelName);
 }
示例#7
0
文件: MainMenu.cs 项目: INao-mp/MNL
 public void Play()
 {
     sceneFader.FadeTo(LevelToLoad);
 }
示例#8
0
 public void Continue()
 {
     player.level = levelToUnlock;
     player.Save(player.GetCurrentSavedFile());
     sceneFader.FadeTo(nextLevel);
 }
示例#9
0
 public void Retry()
 {
     Togle();
     sceneFader.FadeTo(SceneManager.GetActiveScene().name);
 }
示例#10
0
 public void Retry()
 {
     sceneFade.FadeTo(SceneManager.GetActiveScene().name);
 }
示例#11
0
 public void PlayGame()
 {
     sceneFader.FadeTo(menuSceneName);
 }
示例#12
0
 public void goToScene(string sceneName)
 {
     sceneFader.FadeTo(sceneName);
 }
示例#13
0
 public void Play()
 {
     sceneFade.FadeTo("LevelSelect");
 }
示例#14
0
 public void Retry()
 {
     Time.timeScale = 1;
     sceneFader.FadeTo(SceneManager.GetActiveScene().name);
 }
示例#15
0
 public void Menu()
 {
     Toggle();
     sceneFader.FadeTo(menuSceneName);
 }
示例#16
0
 public void Select(string levelName)
 {
     fader.FadeTo(levelName);
 }
示例#17
0
 public void Retry()
 {
     WaveSpawner.EnemiesAlive = 0;
     sceneFade.FadeTo(SceneManager.GetActiveScene().name);
 }