Beispiel #1
0
        public void UpgradeDoubleClicker()
        {
            View.SetScoreLabelText(User.Points);
            View.UpgradeLevelLabel(6); // 6 -> DoubleClicker index
            DoubleClicker.Upgrade();
            const int Digits = 1;

            DoubleClicker.CurrentPrice = Math.Round(DoubleClicker.CurrentPrice * 2, Digits);
            this.User.PointsPerClick   = this.User.PointsPerClick * 2;
            View.SetButtonText(DoubleClicker.CurrentPrice, 6); // 6 -> DoubleClicker index
        }
Beispiel #2
0
 private void Start()
 {
     doubleE      = new DoubleClicker(KeyCode.E);
     doubleMouse0 = new DoubleClicker(KeyCode.Mouse0);
     doubleMouse1 = new DoubleClicker(KeyCode.Mouse1);
 }