Stratkit Combat Indicator¶
When armies are fighting, this will display an indicator at the position of the fight to make it easily distinguishable on the map.
Setup¶
To use this module, you have to:
* Add a CombatIndicatorModule and CombatIndicatorConfig to your bootstrap
* Create a CombatIndicatorBehaviour prefab to be used as the indicator
* Create or add CombatIndicatorCanvasAuthoring to a canvas to be used as the parent for the indicators
* (Optional) Add an Animator to the prefab with a Pulsing bool and/or a State int, driven via SetPulsing(bool) and SetIndicatorState(CombatIndicatorState). A missing Animator logs an error once.
* (Optional) Spawn a persistent victory / defeat indicator held for a configured time via CombatIndicatorUtils.ShowResolvedIndicator(...).