public void SaveSoundSettings()
 {
     GameDataReferences.Instance.backgroundVolume = backgroundSlider.value;
     GameDataReferences.Instance.effectsVolume    = effectsSlider.value;
     GameDataReferences.Instance.qualityIndex     = qualityDropdown.value;
     SaveBinary.SaveGameData(GameDataReferences.Instance);
 }
Ejemplo n.º 2
0
 public void SelectButton()
 {
     GameDataReferences.Instance.carIndex = current;
     GameDataReferences.Instance.player   = cars.cars[current];
     SaveBinary.SaveGameData(GameDataReferences.Instance);
     DestroySequence();
     menu.SetActive(true);
     carSelect.SetActive(false);
 }