public void SaveLevelData() { LevelData currentLevel = new LevelData(SceneManager.GetActiveScene().buildIndex, starsWonInLevel); PlayerPersistence.TryToSaveCurrentLevel(currentLevel); }
public void SaveLevelData() { LevelData currentLevel = new LevelData(SceneManager.GetActiveScene().buildIndex, starsWonInLevel); PlayerPersistence.TryToSaveCurrentLevel(currentLevel); }