Fix issue with berries going off screen when using anti berry
This commit is contained in:
1 file changed
+1
@@ -259,6 +259,7 @@ public class GamePlayer : MonoBehaviour
|
||||
if (dir.magnitude < 3f)
|
||||
{
|
||||
berry.GetComponent<Rigidbody2D>().linearVelocity = dir.normalized * 5f;
|
||||
ClampPosition(berry);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user