public void ToNextState() { if (GameState.GetValue() == false) { stateMachine.ChangeState <GameEndState>(); } else { stateMachine.ChangeState <SettleState>(); } }
public void ToNextState() { if (GameState.GetValue() == false) { stateMachine.ChangeState <GameEndState>(); } else if (activeBlocks.Count > 0) { stateMachine.ChangeState <FallState>(); } else { stateMachine.ChangeState <ControlState>(); } }
public void ToFallState() { stateMachine.ChangeState <FallState>(); }