Ejemplo n.º 1
0
 public VerticalMovement(MovementContext context, global::Vanguard ops)
 {
     movementContext = context;
     vanguard        = ops;
     jumping         = false;
     controller      = ops.Controller();
 }
Ejemplo n.º 2
0
 public MovementContext(global::Vanguard obs)
 {
     vanguard       = obs;
     movementStates = new Dictionary <MovementStates, IMovementState>();
     movementStates.Add(MovementStates.LateralMovement, new LateralMovement(this, vanguard));
     movementStates.Add(MovementStates.VerticalMovement, new VerticalMovement(this, vanguard));
     currentState = movementStates[MovementStates.LateralMovement];
 }
Ejemplo n.º 3
0
 public LateralMovement(MovementContext context, global::Vanguard ops)
 {
     movementContext = context;
     controller      = ops.Controller();
 }
Ejemplo n.º 4
0
 public Controller(global::Vanguard obs) => vanguard = obs;