🔸Modify Stat <Component>
Last updated
Last updated
The modify Stat component is a great tool to modify several Stats of a character. Is usually used with a Trigger Enter component or it can be connected to an Event that has as a parameter a GameObject, Component or Monobehaviour property.
It uses the Stat Modifier class to modify each stats.
Reference to the stats to modify
List of Stat modifiers that it will be applied to the stat
void Modify(Component stats)
Uses the parameters <stats> to find a Stats Component and applies the modifications. Use this with an Unity Event