This class provides resources for implementing an interface that shows the device’s battery level and status. For Android or iOS devices.
Script settings in Inspector
Steps for use
Attach the Battery.cs script to any Battery GameObject in the Scene.
Battery Image: Attach an Image component to the battery image. Sample image.
Fill Level Image: Attach an Image component to work as a battery level. Sample image.
For the colors we have 3 color levels, Normal, Attention and Alert.
In tests you can use to test the feature with the Editor running.