This commit is contained in:
cemt1363
2026-06-06 16:31:37 +02:00
parent 787153761c
commit 0899e0eb5d
4 changed files with 109 additions and 2 deletions
+11 -2
View File
@@ -109,9 +109,18 @@ public class DropletMovement : MonoBehaviour
if (isDashing || isDropping)
{
return;
}
} // was here before
rb.linearVelocity = new Vector2(movement.x * moveSpeed, rb.linearVelocity.y);
float windForce = 0f;
if (WindManager.Instance != null)
{
windForce = WindManager.Instance.CurrentWindForce;
}
rb.linearVelocity = new Vector2(movement.x * moveSpeed + windForce, rb.linearVelocity.y);
//used to be rb.linearVelocity = new Vector2(movement.x * moveSpeed, rb.linearVelocity.y);
}
private void OnTriggerEnter2D(Collider2D other)