public void SetSilver(int count) { int oldCount = silver; silver = count; if (oldCount != silver) { RavenhillEvents.OnPlayerSilverChanged(oldCount, silver); } }
private void AddSilverImpl(int count) { int oldCount = silver; silver += count; if (oldCount != silver) { RavenhillEvents.OnPlayerSilverChanged(oldCount, silver); } }
public void RemoveSilver(int count) { if (silver >= count) { int oldSilver = silver; silver -= count; if (oldSilver != silver) { RavenhillEvents.OnPlayerSilverChanged(oldSilver, silver); } } }