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