// 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); } }