wip: Player demo scene

This commit is contained in:
2026-05-27 16:41:54 +02:00
parent 186a2a5258
commit 6a26357204
31 changed files with 15795 additions and 103 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();
}
}
}