Пример #1
0
 void Buy()
 {
     ScoreManager.AddCPS(auto.cookiesPerSec);
     ScoreManager.AddCoockie(-autoInfo.cost);
     autoInfo.cost   *= auto.costMutli;
     autoInfo.amount += 1;
 }
Пример #2
0
    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);
        }
    }
Пример #3
0
 public void Clicked()
 {
     ScoreManager.AddCoockie(coockiesPerClick);
 }