private void SetupMovementBehaviour() { var flyStateModel = new DragonFlyStateModel { flyPositionLeft = flyPositionLeft.position, flyPositionRight = flyPositionRight.position, landPosition = transform.position }; flyState = new DragonFlyState(this, flyStateModel); var landStateModel = new DragonLandStateModel(); landState = new DragonLandState(this, landStateModel); stateMachine.SetState(landState); }
public DragonFlyState(DragonAI baseAI, DragonFlyStateModel model) { this.baseAI = baseAI; this.model = model; }