Esempio n. 1
0
 private void MaxUnitReachedHandler(object sender, EnergyArgs e)
 {
     if (OnFull != null)
     {
         OnFull();
     }
 }
Esempio n. 2
0
        private void ValueUpdateHandler(object sender, EnergyArgs e)
        {
            int prevValue = Value;

            Value = e.CurrentEnergy;
            if (OnUpdated != null)
            {
                OnUpdated(Value, prevValue);
            }
        }
Esempio n. 3
0
 private void HandleOnMaxEnergyReached(object sender, EnergyArgs e)
 {
     // max reached.
 }
Esempio n. 4
0
    private void HandleOnCurrentEnergyUpdate(object sender, EnergyArgs e)
    {
        int currentEnergy = e.CurrentEnergy;

        OnUserEnergyRefresh(currentEnergy);
    }
Esempio n. 5
0
 void HandleOnCurrentEnergyUpdate(object sender, EnergyArgs e)
 {
     OnEnergyUpdate(e.EnergyName, e.CurrentEnergy);
 }