Exemplo n.º 1
0
 public VerticalMovement(MovementContext context, global::Vanguard ops)
 {
     movementContext = context;
     vanguard        = ops;
     jumping         = false;
     controller      = ops.Controller();
 }
Exemplo n.º 2
0
 void AssignGameComponents()
 {
     animator = GetComponent <Animator>();
     //establish the observer relationship
     controller            = new MyStuff.Controller(this);
     animationContext      = new MyStuff.AnimationContext(animator);
     movementContext       = new MyStuff.MovementContext(this);
     lateralMovementVector = new Vector3();
     rigidBody             = GetComponent <Rigidbody>();
     groundContact         = true;
     fpsCamera             = fpsCameraObj.GetComponent <Camera>();
     health     = GetComponent <Health>();
     bodyDamage = GetComponent <BattleDamage>();
     AssignWeapon();
     deathSequence = GetComponent <Dead>();
     m_enableIK    = true;
 }
Exemplo n.º 3
0
 public LateralMovement(MovementContext context, global::Vanguard ops)
 {
     movementContext = context;
     controller      = ops.Controller();
 }