public void LevelTransition() { currLevel++; if ((int)currLevel < levelLength) { UpdateHealth(maxHealth - health); SceneManager.LoadScene(playerType.ToString() + currLevel.ToString()); } }
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()); } }