Update() 공개 메소드

public Update ( ) : void
리턴 void
예제 #1
0
 void Update()
 {
     _inputs.ReadInput();
     _playerMovement.Update();
     _playerJump.Update();
     _playerCombat.Update();
 }
예제 #2
0
    void FixedUpdate()
    {
        var dx = Input.GetAxis(playerControls.Horizontal);

        playerMovement.CheckHorizontalAxis(dx);

        playerMovement.Update();
    }
예제 #3
0
        private void UpdateTest()
        {
            var player = new PlayerMovement(0, 0);

            Input.Press(Direction.Down);
            player.Update();
            player.Direction.ShouldBe(Direction.Down);
            player.Position.ShouldBe(new Tile(0, 0));
            player.Update();
            player.Position.ShouldBe(new Tile(0, -1));
            player.Update();
            player.Position.ShouldBe(new Tile(0, -2));
            Input.Press(Direction.Left);
            Input.Press(Direction.Right);
            player.Update();
            player.Position.ShouldBe(new Tile(0, -2));
            player.Update();
            player.Position.ShouldBe(new Tile(-1, -2));
        }
예제 #4
0
 protected override void Update()
 {
     if (GamePaused)
     {
         return;
     }
     if (_groundDetector.OnSolidGround)
     {
         _lastGroundedPosition = transform.position;
     }
     _movement.Update();
     base.Update();
 }
예제 #5
0
파일: Player.cs 프로젝트: Fthree/SimmidySam
 // Update is called once per frame
 void Update()
 {
     playerMovement.Update();
     movePlayer();
 }
예제 #6
0
 private void FixedUpdate()
 {
     _blockers.UpdatePos(this);
     _movement.Update(_rigid, this, Time.fixedDeltaTime);
     LerpFacing();
 }
예제 #7
0
 void Update()
 {
     playerMovement.Update();
 }
예제 #8
0
파일: Program.cs 프로젝트: san-had/codewars
        private static void Move()
        {
            Press(Direction.Down);

            player.Update();
        }
예제 #9
0
 public void Update()
 {
     _playerMovement?.Update();
     _playerShooting?.Update();
 }
예제 #10
0
 // Update is called once per frame
 void Update()
 {
     m_health.Update();
     m_movement.Update();
     m_groundDetection.Update();
 }
 /// <summary>
 /// Called once per frame
 /// </summary>
 private void Update()
 {
     m_plLook.Update();
     m_pmMovement.Update();
 }
예제 #12
0
    public IEnumerator Animation_Dashing()
    {
        playerMovement.CheckGrounded();
        playerMovement.CheckDash(true, 0f);
        playerMovement.Update();
        yield return(new WaitForFixedUpdate());

        playerAnimator.Received()
        .UpdateAnimationState(PlayerAnimationState.DASHING);
        playerAnimator.Received().UpdateAnimationSpeed(1.0f);
    }