public void ButtonPressed() { buttonPrice += buttonPrice * rateOfPriceIncrease; buttonText.text = buttonPrice.ToShortString(); rateOfChange += rateOfUnitIncrease; rateOfChangeText.text = rateOfChange.ToShortString() + "/sec"; CompareAndHandleButtonActivation(unit, buttonPrice); }
private void Start() { secondFraction = 0.0f; showText.text = unit.ToShortString(); buttonText.text = buttonPrice.ToShortString(); rateOfChangeText.text = rateOfChange.ToShortString() + "/sec"; CompareAndHandleButtonActivation(unit, buttonPrice); }
public void Divide() { IdleCurrency newC = value1 / value2; Debug.Log("Result --> " + newC.ToShortString() + " SaveAbleString --> " + newC.GetStringForSave()); }
private void SecondElapsed() { unit += rateOfChange; showText.text = unit.ToShortString(); CompareAndHandleButtonActivation(unit, buttonPrice); }