Class UnitInfoUI
- Namespace
- StarterKit
- Assembly
- StarterKit.dll
STARTERKIT - Unit information panel Shows units in the selected province with option to create new units. Movement logic is handled by UnitMoveHandler.
public class UnitInfoUI : StarterKitPanel
- Inheritance
-
objectUnitInfoUI
- Inherited Members
Methods
CreateUI()
Override to create your panel's UI elements. Set panelContainer to your main container element.
protected override void CreateUI()
Initialize(GameState, UnitSystem, ProvinceSelector, EconomySystem)
public void Initialize(GameState gameStateRef, UnitSystem unitSystemRef, ProvinceSelector provinceSelectorRef, EconomySystem economySystemRef = null)
Parameters
gameStateRefGameStateunitSystemRefUnitSystemprovinceSelectorRefProvinceSelectoreconomySystemRefEconomySystem
OnDestroy()
Called when the panel is destroyed. Disposes event subscriptions. Override to add cleanup, but always call base.OnDestroy().
protected override void OnDestroy()