Exemplo n.º 1
0
    public void OnSave()
    {
        List <int> ids = new List <int>();

        foreach (Talent t in GameController.instance.talentTree.talents.Where(t => t.isUnlocked).ToList())
        {
            ids.Add(t.id);
        }
        saveData = new SaveResearchData(researchSpeed, stage, GameController.instance.player.level, ids, view.progressImage.fillAmount);
    }
Exemplo n.º 2
0
 public void OnSave()
 {
     saveData = new SaveResearchData(counter, 0, filled1: liquidBar.healingBar.fillAmount, filled2: pillsBar.healingBar.fillAmount);
 }