From 36078293ae3b9a35090384c4440137a62a4398f1 Mon Sep 17 00:00:00 2001 From: Lncvrt Date: Thu, 4 Sep 2025 19:30:23 -0700 Subject: [PATCH] Fix issue with berries going off screen when using anti berry --- Assets/Scripts/GamePlayer.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Assets/Scripts/GamePlayer.cs b/Assets/Scripts/GamePlayer.cs index 773b358..e420988 100644 --- a/Assets/Scripts/GamePlayer.cs +++ b/Assets/Scripts/GamePlayer.cs @@ -259,6 +259,7 @@ public class GamePlayer : MonoBehaviour if (dir.magnitude < 3f) { berry.GetComponent().linearVelocity = dir.normalized * 5f; + ClampPosition(berry); } } }