コード例 #1
0
        public void ButtonPressed()
        {
            buttonPrice    += buttonPrice * rateOfPriceIncrease;
            buttonText.text = buttonPrice.ToShortString();

            rateOfChange         += rateOfUnitIncrease;
            rateOfChangeText.text = rateOfChange.ToShortString() + "/sec";

            CompareAndHandleButtonActivation(unit, buttonPrice);
        }
コード例 #2
0
        private void Start()
        {
            secondFraction = 0.0f;

            showText.text         = unit.ToShortString();
            buttonText.text       = buttonPrice.ToShortString();
            rateOfChangeText.text = rateOfChange.ToShortString() + "/sec";

            CompareAndHandleButtonActivation(unit, buttonPrice);
        }
コード例 #3
0
        public void Divide()
        {
            IdleCurrency newC = value1 / value2;

            Debug.Log("Result --> " + newC.ToShortString() + "    SaveAbleString --> " + newC.GetStringForSave());
        }
コード例 #4
0
 private void SecondElapsed()
 {
     unit         += rateOfChange;
     showText.text = unit.ToShortString();
     CompareAndHandleButtonActivation(unit, buttonPrice);
 }