Most games have a way where objects inflict damage into each other and recover from them using some item.
This Energy System package adds this and others features to your game.Energy System is a simple package where you will find easy to use, whether you have any scripting knowledge or not. You can set all necessary data using the Inspector.The System was projected using the concept of Damager, Damageable and Energy objects.A Damager GameObject can damage Damageables GameObjects, reducing its Energy. They can recover Energy using EnergyRecover GameObjects. A Damageable may have an Energy component and this can be shown in the UI by using an EnergyBar.If you want to get into scripts, Events are available so other scripts can easily get notified when some actions are executed, like when the energy ends, increases etc.Play the WebGL demoRead the full documentation for more information.Source code is fully documentedSerializable attributes have describing tooltipsWorks perfectly with 2D or 3D colliders thanks to Collider Adapter packageDesigned following the Entity Component System (ECS)Small components following the Single Responsibility PrincipleComponents with Events to easily notify other scriptsShows Energy Bar using UICompatible with Unity 2019, 2020 and 2021 LTS versions.