2025-07-08 10:46:31 +00:00
|
|
|
|
using Superlazy;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
public class SLUIResource : MonoBehaviour
|
|
|
|
|
{
|
|
|
|
|
public string effectBind;
|
|
|
|
|
|
|
|
|
|
private SLResourceObject effect;
|
|
|
|
|
|
|
|
|
|
private void OnEnable()
|
|
|
|
|
{
|
|
|
|
|
if (effect == null)
|
|
|
|
|
{
|
|
|
|
|
effect = SLResources.CreateInstance(effectBind, transform);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|