Added a bit of sucking to pressers

This commit is contained in:
Pasha committed 2026-04-22 00:37:55 +01:00
1 parent 5fd23e259c
commit 84d0e1d115
3 files changed
+13 -6

No files matched your search

@@ -27,6 +27,15 @@ namespace Fruitomation.Game
EffectTrigger.SetAction(other => CurrentContainedObjects.Remove(other.gameObject),
TriggerType.Exit
);
EffectTrigger.SetAction(other =>
{
if (other.transform.parent.TryGetComponent(out Rigidbody2D body))
{
Debug.Log(body.name);
body.AddForce(Vector3.down * 5f, ForceMode2D.Force);
}
}, TriggerType.Stay);
}
private void Update()