Exemple #1
0
 void SetEnergy(float energy)
 {
     _energy = energy;
     _batteryLife.Refresh(_animator.GetCurrentName(),
                          _animator.GetCurrentIndex(),
                          _energy / _maxEnergy);
 }