Attributes
Last updated
Last updated
The value representation of a parameter/mechanic in our system.
1. Resources use baseValue. They are expendable (e.g. HealthPoints, Potions, Ammo, Coins).
2. Stats use currentValue. Not expendable (e.g. MaxHealth, MaxMana, JumpHeight, CritChance).
*Create and assign all needed attributes via the Editor Inspector or on Awake(). Creating and assigning attributes during runtime is not supported currently.
Attributes have a property called AttributeName, it is a simple reusable ScriptableObject that assigns the name and type for an Attribute object.
You can create as many different attributesNames as you want to represent different values in your mechanics.
*AttributeNames must be in the same folder as their library (AttributeNameLibrary)