public void SetGold(int count) { int oldCount = gold; gold = count; if (oldCount != gold) { RavenhillEvents.OnPlayerGoldChanged(oldCount, gold); } }
public void RemoveGold(int count) { if (gold >= count) { int oldCount = gold; gold -= count; if (oldCount != gold) { RavenhillEvents.OnPlayerGoldChanged(oldCount, gold); } } }