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