更新场景

This commit is contained in:
2025-11-13 00:17:40 +08:00
parent 5440af548e
commit f60512b540
828 changed files with 62968 additions and 1239396 deletions

View File

@@ -1,28 +0,0 @@
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();
}
}
}