EnemyHealthBar
Displays the enemy's current health as a text counter. Subscribes automatically to the sibling EnemyHealth component's events — no manual wiring needed beyond assigning the label.
| Field | Type | Description |
healthCounter | TMP_Text | Text label that shows the current health value. |
EnemyInstructionIndicator
Shows animated transitions between the enemy's current and previous actions. Displays two icon slots — entry (incoming action) and exit (outgoing action) — and drives an Animator for the slide-in/slide-out transitions. Wired by EnemyController.Initialize() automatically.
| Field | Type | Description |
entryInstruction | Image | Icon for the current active instruction. |
exitInstruction | Image | Icon for the previous instruction — visible during the transition animation. |
| Method | Description |
Initialize(EnemyController controller) | Subscribes to the controller's action-start, action-change, and action-end events. Called automatically by EnemyController — not needed in user code. |
EnemyActionSequencePanel
Renders the enemy's full attack sequence as a grid of icons. Each entry shows one EnemyAction with its loop count. The panel toggles visibility on mouse hover and is populated once during EnemyController.Initialize().
| Field | Type | Description |
container | RectTransform | Parent that receives the spawned EnemyAction_Layout elements. |
layoutPrefab | EnemyAction_Layout | Prefab used to spawn one entry per action. |
| Method | Description |
Initialize(EnemyActionInstance[] actionInstances) | Spawns one EnemyAction_Layout per action instance and populates it with the action icon and loop count. |
EnemyAction_Layout
Prefab-based widget for a single entry in the EnemyActionSequencePanel. Use CreateInstance to spawn and configure it.
| Field | Type | Description |
icon | Image | Displays the action's icon sprite. |
loopsText | TMP_Text | Shows how many times the action repeats in the sequence. |
| Method | Description |
CreateInstance(EnemyAction action, int loops, RectTransform container) | Instantiates a copy of this prefab inside container, sets the icon and loop count, and returns the new instance. |