void InitializeStates() { IState introState = new BattleIntro(gameObject); IState selectActionState = new BattleSelectAction(gameObject); IState selectTargetState = new BattleSelectTarget(gameObject); IState performMoveState = new BattlePerformMove(gameObject); IState swapState = new BattleSwap(gameObject); IState gameOverState = new BattleOver(gameObject); IState waveIncreaseState = new BattleIncreaseWave(gameObject); statemachine.AddState("Intro", introState); statemachine.AddState("SelectAction", selectActionState); statemachine.AddState("SelectTarget", selectTargetState); statemachine.AddState("PerformMove", performMoveState); statemachine.AddState("Swap", swapState); statemachine.AddState("GameOver", gameOverState); statemachine.AddState("WaveIncrease", waveIncreaseState); statemachine.ChangeState("Intro"); }