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