500 {
502 return 0;
503
504 if (batteryPercent <= 0)
505 return 0;
506
507 const int maxBars = 6;
508 float barsFloat =
Math.
Ceil((batteryPercent / 100.0) * maxBars);
510 }
enum CodeLockLightState m_CodeLock
static proto float Max(float x, float y)
Returns bigger of two given values.
static proto float Min(float x, float y)
Returns smaller of two given values.
static proto float Ceil(float f)
Returns ceil of value.