导入odin

This commit is contained in:
2026-01-01 23:09:08 +08:00
parent 9ceffccd39
commit 04dd4a23b2
814 changed files with 120820 additions and 87 deletions

View File

@@ -0,0 +1,28 @@
using UnityEngine;
using UnityEngine.Events;
namespace Obvious.Soap.Example
{
public class Player : MonoBehaviour
{
[SerializeField] private ScriptableListPlayer scriptableListPlayer = null;
[SerializeField] private PlayerVariable _playerVariable = null;
[SerializeField] private UnityEvent _onNotified = null;
private void Awake()
{
_playerVariable.Value = this;
scriptableListPlayer.TryAdd(this);
}
private void OnDestroy()
{
scriptableListPlayer.Remove(this);
}
public void Notify()
{
_onNotified?.Invoke();
}
}
}