Exemplo n.º 1
0
 public void Initialize(PlayerMoney money1, PlayerMoney money2)
 {
     sourceMoney            = money1;
     destinationMoney       = money2;
     sourceAmount.text      = sourceMoney.getValue <float>().ToString();
     destinationAmount.text = destinationMoney.getValue <float>().ToString();
 }
Exemplo n.º 2
0
 public void checkMax()
 {
     inputField.text = Mathf.Clamp(float.Parse(inputField.text), 0, sourceMoney.getValue <float>()).ToString();
 }