Files
zeling_v2/Assets/Scripts/VFX/IVFXPoolService.cs
2026-05-12 15:34:08 +08:00

20 lines
553 B
C#

// Assets/Scripts/VFX/IVFXPoolService.cs
// VFX 对象池服务接口,通过 ServiceLocator 注册与查询。
// VFXPool 实现此接口;调用方通过接口解耦。
using UnityEngine;
using UnityEngine.AddressableAssets;
namespace BaseGames.VFX
{
public interface IVFXPoolService
{
void Play(AssetReferenceGameObject vfxRef,
Vector3 position,
Quaternion rotation = default,
float maxLifetime = 0f);
void Warmup(AssetReferenceGameObject vfxRef, int count);
}
}