Functioning player movement,

Persistent block needs to be implemented
This commit is contained in:
RochesterX
2025-01-31 12:48:13 -05:00
parent 36815eb876
commit 70518b2b69
7 changed files with 189 additions and 306 deletions

View File

@@ -119,7 +119,7 @@ public class PlayerMovement : MonoBehaviour
private void Jump()
{
if (!punch.cancelable) return;
//if (!punch.cancelable) return;
if (virtualButtonJumpLastFrame == 1f)
{
@@ -160,7 +160,7 @@ public class PlayerMovement : MonoBehaviour
private void HorizontalMovement()
{
if (!punch.cancelable) return;
//if (!punch.cancelable) return;
body.AddForce(new Vector2(virtualAxisX * walkSpeed * walkSpeedFactor, 0), ForceMode2D.Force);