public void AddIteration() { iteration++; CheckIteration(); HelpSaveLoad.SetValue(ConstsLibrary.iteration, iteration); HelpSaveLoad.SetValue(ConstsLibrary.hardnessPrefs, hardness); }
public void SetSoundVolume(float volume) { foreach (var item in soundSettings) { item.source.volume = volume * item.volumeDecreaser; } HelpSaveLoad.SetValue(ConstsLibrary.soundEffectVolumePrefs, volume); }
public void SetMisicVolume(float volume) { if (mainTheme != null) { mainTheme.volume = volume * menuTheme.volumeDecreaser; } HelpSaveLoad.SetValue(ConstsLibrary.musicVolumePrefs, volume); }
public void SaveCurrentAll() { HelpSaveLoad.SetValue(ConstsLibrary.playerCash, playerCash); HelpSaveLoad.SetValue(ConstsLibrary.cashPerSecond, cashPerSecond); HelpSaveLoad.SetValue(ConstsLibrary.cashPerStart, cashPerStart); HelpSaveLoad.SetValue(ConstsLibrary.cashPerMissionMultiplyer, missionCashMultipyer); HelpSaveLoad.SetValue(ConstsLibrary.rocketCrashCost, rocketCrashCost); }
public void AddCash(float cash) { playerCash += cash; //Remove if we can have... borrow? //if (playerCash < 0) //{ // playerCash = 0; //} HelpSaveLoad.SetValue(ConstsLibrary.playerCash, playerCash); }
//Set Particles+ //Set Starting Menu private void LevelInitiation() { int nodesCount = HelpSaveLoad.GetValue(ConstsLibrary.openNodesCount, 0); PlayerStats.instance.OpenTechNodesCount(nodesCount); GameMaster.instance.day = GameMaster.instance.iteration; // print("day LevelInitiation " + day); HelpSaveLoad.SetValue(ConstsLibrary.day, GameMaster.instance.iteration); InGameWiever.instance.SetDayText(GameMaster.instance.iteration); GameMaster.instance.hardness = HelpSaveLoad.GetValue(ConstsLibrary.hardnessPrefs, 0); }
public void MuteAll(bool muted) { mainTheme.mute = muted; if (muted) { HelpSaveLoad.SetValue(ConstsLibrary.mutedPrefs, 1); } else { HelpSaveLoad.SetValue(ConstsLibrary.mutedPrefs, 0); } }
public void SetMisicVolume(float volume) { foreach (var item in musicSettings) { item.source.volume = volume * item.volumeDecreaser; } var s = Array.Find(musicSettings, musicSettings => musicSettings.sourseName == nowPlayingMisicName); if (s != null) { s.volume = volume * s.volumeDecreaser; } HelpSaveLoad.SetValue(ConstsLibrary.musicVolumePrefs, volume); }
public void OpenTechNodesCount(int count) { HelpSaveLoad.SetValue(ConstsLibrary.openNodesCount, count); MaxSpeedSetuper(count); MaxHealthSetuper(count); EngineColorSetuper(count); if (count == 0) { return; } if (count >= 3) { InGameWiever.instance.EventInformerActivator(); } else { InGameWiever.instance.EventInformerActivator(false); } if (count > 4) { InGameWiever.instance.HeightCheckerActivation(); } else { InGameWiever.instance.HeightCheckerActivation(false); } if (count >= 8) { RocketMovement.instance.AdditionalStagesCount = 1; } if (count >= 12) { RocketMovement.instance.AdditionalStagesCount = 2; } if (count >= 16) { InGameWiever.instance.ClosestObjectActivation(); } else { InGameWiever.instance.ClosestObjectActivation(false); } }
public void MuteAll(bool muted) { foreach (var item in soundSettings) { item.source.mute = muted; } foreach (var item in musicSettings) { item.source.mute = muted; } if (muted) { HelpSaveLoad.SetValue(ConstsLibrary.mutedPrefs, 1); } else { HelpSaveLoad.SetValue(ConstsLibrary.mutedPrefs, 0); } }
private void SaveRocketStagesValue(int value) { HelpSaveLoad.SetValue(ConstsLibrary.rocketStagesValue, value); }
public void ChangeCashPerStart(float cash) { cashPerStart += cash; // print("ChangeCashPerStart cash" + cashPerStart); HelpSaveLoad.SetValue(ConstsLibrary.cashPerStart, cashPerStart); }
public void ChangeCashPerSecond(float cash) { cashPerSecond += cash; HelpSaveLoad.SetValue(ConstsLibrary.cashPerSecond, cashPerSecond); }
public void AddDay() { day++; HelpSaveLoad.SetValue(ConstsLibrary.day, day); InGameWiever.instance.SetDayText(day); }
public void ChangeCashPerMission(float cash) { missionCashMultipyer += cash; HelpSaveLoad.SetValue(ConstsLibrary.cashPerMissionMultiplyer, missionCashMultipyer); }
public void ChangeRocketCrashCost(float cash) { rocketCrashCost += cash; HelpSaveLoad.SetValue(ConstsLibrary.rocketCrashCost, rocketCrashCost); }
private void SaveNodeState(string nodeName, int value) { HelpSaveLoad.SetValue(nodeName, value); }
public void SetSoundVolume(float volume) { HelpSaveLoad.SetValue(ConstsLibrary.soundEffectVolumePrefs, volume); }