Added new prefabs

This commit is contained in:
2026-04-27 20:04:45 +01:00
parent bfce2fd97d
commit 54008ad81d
22 changed files with 852 additions and 2 deletions

View File

@@ -16,7 +16,7 @@ namespace Fruitomation.Game
[SerializeField] private Collider2D BottomCollider;
[SerializeField] private TriggerDetector EffectTrigger;
private HashSet<GameObject> CurrentContainedObjects = new();
private readonly HashSet<GameObject> CurrentContainedObjects = new();
private void Awake()
{
@@ -32,7 +32,6 @@ namespace Fruitomation.Game
{
if (other.transform.parent.TryGetComponent(out Rigidbody2D body))
{
Debug.Log(body.name);
body.AddForce(Vector3.down * 5f, ForceMode2D.Force);
}
}, TriggerType.Stay);