feat: Water shader contact

This commit is contained in:
2026-06-09 16:53:45 +02:00
parent ff2ab17a50
commit 296c2bf68a
14 changed files with 4434 additions and 737 deletions

View File

@@ -16,6 +16,7 @@ public class Player : MonoBehaviour
Idle,
Moving,
Jumping,
JumpingDouble,
Falling,
Dashing,
Stunned,
@@ -666,7 +667,10 @@ public class Player : MonoBehaviour
{
if (State.VerticalVelocity > 0)
{
State.CurrentState = PlayerState.Jumping;
if (!_doubleJump)
State.CurrentState = PlayerState.Jumping;
else
State.CurrentState = PlayerState.JumpingDouble;
}
else
{