add project files
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user