private void SetNewLevelData() { _loadData.SavedLevelData.SelectedLevel = ActiveLevel; if (_loadData.SavedLevelData.ActiveLevels < ActiveLevel) { _loadData.SavedLevelData.ActiveLevels = ActiveLevel; } _loadData.SaveData(); }
private void SetSelectedLevel() { _saveLoadLevel = FindObjectOfType <SaveLoadLevel>(); _saveLoadLevel.SavedLevelData.SelectedLevel = _selectedLevel; _saveLoadLevel.SaveData(); }