Made fans move objects

This commit is contained in:
2026-04-11 15:26:19 +01:00
parent 75565f040e
commit 2222294a79
6 changed files with 249 additions and 12 deletions

View File

@@ -0,0 +1,13 @@
using UnityEngine;
using System;
namespace Fruitomation.Game
{
public class TriggerDetector : MonoBehaviour
{
private Action<Collider2D> RegisteredAction;
public void SetAction(Action<Collider2D> action) => RegisteredAction = action;
private void OnTriggerStay2D(Collider2D other) => RegisteredAction?.Invoke(other);
}
}