private void FixedUpdate()
 {
     if (characterMover != null && isAlive && !isOnPause)
     {
         //move character
         characterMover.Move();
         // update move anim
         characterMover.UpdateMoveAnim();
     }
 }
Пример #2
0
    // Update is called once per frame
    void Update()
    {
        if (isPaused)
        {
            return;
        }

        //조이스틱 입력값.
        float h = joyStick.GetHorizontalValue();
        float v = joyStick.GetVerticalValue();

        mover.maxSpeed = maxSpeed;
        //캐릭터를 움직인다.
        mover.Move(h, v);
    }