Пример #1
0
    private void SetNewLevelData()
    {
        _loadData.SavedLevelData.SelectedLevel = ActiveLevel;

        if (_loadData.SavedLevelData.ActiveLevels < ActiveLevel)
        {
            _loadData.SavedLevelData.ActiveLevels = ActiveLevel;
        }

        _loadData.SaveData();
    }
Пример #2
0
 private void SetSelectedLevel()
 {
     _saveLoadLevel = FindObjectOfType <SaveLoadLevel>();
     _saveLoadLevel.SavedLevelData.SelectedLevel = _selectedLevel;
     _saveLoadLevel.SaveData();
 }