导入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,21 @@
using UnityEngine;
namespace Obvious.Soap.Example
{
public class AutoDisabler : MonoBehaviour
{
[SerializeField] private float _duration = 0.5f;
public void OnEnable()
{
Invoke(nameof(Disable),_duration);
}
private void Disable()
{
gameObject.SetActive(false);
}
}
}