dash
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user