Class StageUI
Displays the different BattleStates that makes up an ScriptableBattleStage. The color of the icons vary depending on whether the state has already passed or is the current one.
Namespace: AutoBattleFramework.BattleUI
Assembly: cs.temp.dll.dll
Syntax
public class StageUI : MonoBehaviour
Fields
CurrentStateColor
Color of current state (For example, in a fight inside FightState).
Declaration
public Color CurrentStateColor
Field Value
| Type | Description |
|---|---|
| Color |
NextStateColor
Color of next state.
Declaration
public Color NextStateColor
Field Value
| Type | Description |
|---|---|
| Color |
PastStateColor
Color of previous states.
Declaration
public Color PastStateColor
Field Value
| Type | Description |
|---|---|
| Color |
stageImages
List of the stage images that have been generated.
Declaration
public List<GameObject> stageImages
Field Value
| Type | Description |
|---|---|
| List<GameObject> |
Methods
InitializeUI()
Creates the UI objects that represents each stage.
Declaration
public void InitializeUI()
NextState(Int32)
Set the colors according to the current state.
Declaration
public void NextState(int currentState)
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | currentState | Index of current state |