Files
butchers-games-test/Assets/Scripts/Game/Player/SlotMachineHandler.cs
T
Boris Nikolaev 5f1e94b653 add project files
2026-08-14 01:58:31 +03:00

17 lines
331 B
C#

using System;
using UnityEngine;
public class SlotMachineHandler : MonoBehaviour
{
public event Action<SlotMachine> onUseSlotMachine;
private void OnTriggerEnter(Collider other)
{
SlotMachine machine = other.GetComponentInParent<SlotMachine>();
if (machine != null)
{
this.onUseSlotMachine?.Invoke(machine);
}
}
}