示例#1
0
文件: Pool.cs 项目: niksg/LDJam41
 private void AddToPool(Poolable poolable)
 {
     poolable.transform.parent = transform;
     poolable.gameObject.SetActive(false);
     this.Poolables.Add(poolable);
 }
示例#2
0
文件: Pool.cs 项目: niksg/LDJam41
 private void Repool(Poolable poolable)
 {
     poolable.ShouldRepool -= Repool;
     AddToPool(poolable);
 }