void Buy() { ScoreManager.AddCPS(auto.cookiesPerSec); ScoreManager.AddCoockie(-autoInfo.cost); autoInfo.cost *= auto.costMutli; autoInfo.amount += 1; }
private void Update() { if (nextAdd < Time.time) { nextAdd = Time.time + addDelay; ScoreManager.AddCoockie(ScoreManager.CPS / 10f); } if (Input.GetKeyDown(KeyCode.S)) { coockieData.coockieAmount = ScoreManager.coockies; coockieData.coockiesPerSec = ScoreManager.CPS; save.SaveInfos(coockieData, name); } if (Input.GetKeyDown(KeyCode.L)) { save.LoadCoockies(name); } }
public void Clicked() { ScoreManager.AddCoockie(coockiesPerClick); }