17 lines
314 B (Stored with Git LFS)
C#
17 lines
314 B (Stored with Git LFS)
C#
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);
|
|
}
|
|
}
|
|
} |