private void FixedUpdate() { if (characterMover != null && isAlive && !isOnPause) { //move character characterMover.Move(); // update move anim characterMover.UpdateMoveAnim(); } }
// 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); }