public void NextLevel() { level++; backupData.Backup(currentData); if (level < levelNames.Count) { SceneManager.LoadScene(levelNames[level]); } else if (level == levelNames.Count) { SceneManager.LoadScene("Ending"); } else { Debug.Log("Level names insufficient. Count: " + level.ToString()); } }