Exemple #1
0
        public void OnClick()
        {
            switch (state)
            {
            case ClickerStates.ActiveClicks:
                if (!cpu.IsOverHeater)
                {
                    cpu.AddUnit();
                    progress.AddMoneyForClick();
                }
                gpu.AddUnit();
                break;

            case ClickerStates.AutoClicks:
                progress.AddMoneyAutoClick(autoClickMoney);
                break;
            }
        }