Exemplo n.º 1
0
 void FixedUpdate()
 {
     if (!isPaused)
     {
         // Can only happen when unpaused
         Pause();
         Move();
         PlayerAnimation.Animate(isMoving(), anim, rb, isGrounded, (Input.GetAxis(P_RightTrigger) > 0.3f), health.IsDead());
     }
 }
Exemplo n.º 2
0
 void LateUpdate()
 {
     animationController.Animate();
     if (!GetComponent <PlayerCharacter>().isMe || GetComponent <Health>().hp <= 0)
     {
         return;
     }
     InputMovement.KeyboardCheck();
     InputMovement.MouseCheck();
 }
Exemplo n.º 3
0
 void FixedUpdate()
 {
     PA.Fall();
     PA.Animate();
     PC.Control();
 }