コード例 #1
0
 public void LevelTransition()
 {
     currLevel++;
     if ((int)currLevel < levelLength)
     {
         UpdateHealth(maxHealth - health);
         SceneManager.LoadScene(playerType.ToString() + currLevel.ToString());
     }
 }
コード例 #2
0
 public void LoadNewLevel(int i)
 {
     currLevel = (LevelList)(i - 1);
     if ((int)currLevel < levelLength)
     {
         if (health < maxHealth)
         {
             UpdateHealth(maxHealth - health);
         }
         SceneManager.LoadScene(playerType.ToString() + currLevel.ToString());
     }
 }