changing dash params
This commit is contained in:
1 parent
3d93b3840b
commit
491fda25c7
2 files changed
+2573
-3732
No files matched your search
@@ -111,7 +111,7 @@ public class PlayerBehavior : MonoBehaviour
|
||||
|
||||
if (!playerController.IsGrounded() && isDash && (currentDash < dashTime)) {
|
||||
if (!forceAdded) {
|
||||
dashVec = new Vector2(1f * forward, -1f) * dashForce;
|
||||
dashVec = new Vector2(0.5f * forward, -1f) * dashForce;
|
||||
_rb.AddForce(dashVec, ForceMode2D.Impulse);
|
||||
forceAdded = true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user