diff --git a/Assets/Scripts/PlayerMovement.cs b/Assets/Scripts/PlayerMovement.cs index e19c5a9..c5e8fb9 100644 --- a/Assets/Scripts/PlayerMovement.cs +++ b/Assets/Scripts/PlayerMovement.cs @@ -205,7 +205,7 @@ public class PlayerMovement : MonoBehaviour velocity.y += gravity * Time.deltaTime; - Debug.Log(controller.isGrounded); + //Debug.Log(controller.isGrounded); if (canWalk /*&& !running*/) { @@ -472,6 +472,7 @@ public class PlayerMovement : MonoBehaviour myCollider.excludeLayers = excludeEnemy; Debug.Log($"distance:{dashDistance}"); //rb.AddForce(Camera.main.transform.forward * dashDistance, ForceMode.Impulse); + controller.Move(Camera.main.transform.forward * dashDistance / 15); swung = true; swungTimer = 0; timeSinceLastSwing = 0;