多轮审查和修复
This commit is contained in:
19
Assets/Scripts/VFX/IVFXPoolService.cs
Normal file
19
Assets/Scripts/VFX/IVFXPoolService.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
// 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user