private void Awake() { StateMachine = new BlockStateMachine(); RedState = new BlockRedState(this, StateMachine, blockData); YellowState = new BlockYellowState(this, StateMachine, blockData); GreenState = new BlockGreenState(this, StateMachine, blockData); DeadState = new BlockDeadState(this, StateMachine, blockData); }
public BlockYellowState(Block block, BlockStateMachine stateMachine, BlockData blockData) : base(block, stateMachine, blockData) { }
public BlockGreenState(Block block, BlockStateMachine stateMachine, BlockData blockData) : base(block, stateMachine, blockData) { }
public BlockState(Block block, BlockStateMachine stateMachine, BlockData blockData) { this.block = block; this.stateMachine = stateMachine; this.blockData = blockData; }