Ejemplo n.º 1
0
 public void AddIteration()
 {
     iteration++;
     CheckIteration();
     HelpSaveLoad.SetValue(ConstsLibrary.iteration, iteration);
     HelpSaveLoad.SetValue(ConstsLibrary.hardnessPrefs, hardness);
 }
Ejemplo n.º 2
0
 public void SetSoundVolume(float volume)
 {
     foreach (var item in soundSettings)
     {
         item.source.volume = volume * item.volumeDecreaser;
     }
     HelpSaveLoad.SetValue(ConstsLibrary.soundEffectVolumePrefs, volume);
 }
Ejemplo n.º 3
0
 public void SetMisicVolume(float volume)
 {
     if (mainTheme != null)
     {
         mainTheme.volume = volume * menuTheme.volumeDecreaser;
     }
     HelpSaveLoad.SetValue(ConstsLibrary.musicVolumePrefs, volume);
 }
Ejemplo n.º 4
0
 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);
 }
Ejemplo n.º 5
0
 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);
    }
Ejemplo n.º 7
0
 public void MuteAll(bool muted)
 {
     mainTheme.mute = muted;
     if (muted)
     {
         HelpSaveLoad.SetValue(ConstsLibrary.mutedPrefs, 1);
     }
     else
     {
         HelpSaveLoad.SetValue(ConstsLibrary.mutedPrefs, 0);
     }
 }
Ejemplo n.º 8
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);
    }
Ejemplo n.º 9
0
    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);
        }
    }
Ejemplo n.º 10
0
 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);
     }
 }
Ejemplo n.º 11
0
 private void SaveRocketStagesValue(int value)
 {
     HelpSaveLoad.SetValue(ConstsLibrary.rocketStagesValue, value);
 }
Ejemplo n.º 12
0
 public void ChangeCashPerStart(float cash)
 {
     cashPerStart += cash;
     //  print("ChangeCashPerStart cash" + cashPerStart);
     HelpSaveLoad.SetValue(ConstsLibrary.cashPerStart, cashPerStart);
 }
Ejemplo n.º 13
0
 public void ChangeCashPerSecond(float cash)
 {
     cashPerSecond += cash;
     HelpSaveLoad.SetValue(ConstsLibrary.cashPerSecond, cashPerSecond);
 }
Ejemplo n.º 14
0
 public void AddDay()
 {
     day++;
     HelpSaveLoad.SetValue(ConstsLibrary.day, day);
     InGameWiever.instance.SetDayText(day);
 }
Ejemplo n.º 15
0
 public void ChangeCashPerMission(float cash)
 {
     missionCashMultipyer += cash;
     HelpSaveLoad.SetValue(ConstsLibrary.cashPerMissionMultiplyer, missionCashMultipyer);
 }
Ejemplo n.º 16
0
 public void ChangeRocketCrashCost(float cash)
 {
     rocketCrashCost += cash;
     HelpSaveLoad.SetValue(ConstsLibrary.rocketCrashCost, rocketCrashCost);
 }
Ejemplo n.º 17
0
 private void SaveNodeState(string nodeName, int value)
 {
     HelpSaveLoad.SetValue(nodeName, value);
 }
Ejemplo n.º 18
0
 public void SetSoundVolume(float volume)
 {
     HelpSaveLoad.SetValue(ConstsLibrary.soundEffectVolumePrefs, volume);
 }