Exemplo n.º 1
0
    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);
    }
Exemplo n.º 2
0
 public DragonFlyState(DragonAI baseAI, DragonFlyStateModel model)
 {
     this.baseAI = baseAI;
     this.model  = model;
 }