浏览代码

[Bot] Automated dotnet-format update

/main
Dave Rodriguez 4 年前
当前提交
650c1a57
共有 5 个文件被更改,包括 6 次插入5 次删除
  1. 2
      UOP1_Project/Assets/Scripts/Factory/ComponentFactorySO.cs
  2. 2
      UOP1_Project/Assets/Scripts/Factory/IFactory.cs
  3. 3
      UOP1_Project/Assets/Scripts/Pool/Example/ParticleFactorySO.cs
  4. 2
      UOP1_Project/Assets/Scripts/Pool/Example/PoolTester.cs
  5. 2
      UOP1_Project/Assets/Scripts/Pool/IPoolable.cs

2
UOP1_Project/Assets/Scripts/Factory/ComponentFactorySO.cs


{
return Instantiate(Prefab);
}
}
}
}

2
UOP1_Project/Assets/Scripts/Factory/IFactory.cs


public interface IFactory<T>
{
T Create();
}
}
}

3
UOP1_Project/Assets/Scripts/Pool/Example/ParticleFactorySO.cs


[SerializeField]
private PoolableParticle _prefab = default;
public override PoolableParticle Prefab {
public override PoolableParticle Prefab
{
get
{
return _prefab;

2
UOP1_Project/Assets/Scripts/Pool/Example/PoolTester.cs


private IEnumerator Start()
{
List<PoolableParticle> particles = _pool.Request(10) as List<PoolableParticle>;
foreach(PoolableParticle particle in particles)
foreach (PoolableParticle particle in particles)
{
particle.transform.position = Random.insideUnitSphere * 5f;
particle.Play();

2
UOP1_Project/Assets/Scripts/Pool/IPoolable.cs


{
void OnRequest();
void OnReturn(Action onReturned);
}
}
}
正在加载...
取消
保存