private void MaxUnitReachedHandler(object sender, EnergyArgs e) { if (OnFull != null) { OnFull(); } }
private void ValueUpdateHandler(object sender, EnergyArgs e) { int prevValue = Value; Value = e.CurrentEnergy; if (OnUpdated != null) { OnUpdated(Value, prevValue); } }
private void HandleOnMaxEnergyReached(object sender, EnergyArgs e) { // max reached. }
private void HandleOnCurrentEnergyUpdate(object sender, EnergyArgs e) { int currentEnergy = e.CurrentEnergy; OnUserEnergyRefresh(currentEnergy); }
void HandleOnCurrentEnergyUpdate(object sender, EnergyArgs e) { OnEnergyUpdate(e.EnergyName, e.CurrentEnergy); }