Exemplo n.º 1
0
 public void AddCash(float amount)
 {
     if (CurrentCash + amount > float.MaxValue)
     {
         CurrentCash = float.MaxValue;
     }
     else
     {
         CurrentCash += amount;
     }
     cashChanged = true;
     level.AddEXP(amount);
 }