This commit is contained in:
2026-06-08 16:11:54 +02:00
parent 4103f5edc7
commit 72cba96dcb
19 changed files with 2151 additions and 783 deletions

View File

@@ -0,0 +1,15 @@
using UnityEngine;
using UnityEngine.Events;
public class PlayerEvent : MonoBehaviour
{
[SerializeField] private UnityEvent _onPlayer;
void OnTriggerEnter(Collider col)
{
if (Player.Instance && Player.Instance.gameObject == col.gameObject)
{
_onPlayer?.Invoke();
}
}
}