您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
23 行
410 B
23 行
410 B
using UnityEngine;
|
|
using UOP1.Pool;
|
|
using UOP1.Factory;
|
|
|
|
[CreateAssetMenu(fileName = "NewParticlePool", menuName = "Pool/Particle Pool")]
|
|
public class ParticlePoolSO : ComponentPoolSO<ParticleSystem>
|
|
{
|
|
[SerializeField]
|
|
private ParticleFactorySO _factory;
|
|
|
|
public override IFactory<ParticleSystem> Factory
|
|
{
|
|
get
|
|
{
|
|
return _factory;
|
|
}
|
|
set
|
|
{
|
|
_factory = value as ParticleFactorySO;
|
|
}
|
|
}
|
|
}
|
|
|