init
This commit is contained in:
commit
001bb14f16
951 changed files with 270074 additions and 0 deletions
19
Assets/Tools/ObjectPooler/Pool.cs
Normal file
19
Assets/Tools/ObjectPooler/Pool.cs
Normal file
|
@ -0,0 +1,19 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
[CreateAssetMenu(fileName = "New Pool", menuName = "Tools/Pool")]
|
||||
public class Pool : ScriptableObject{
|
||||
|
||||
public List<PoolPrefab> pools;
|
||||
[System.Serializable]
|
||||
public class PoolPrefab{
|
||||
public string tag;
|
||||
public GameObject prefab;
|
||||
public bool undetermined;
|
||||
public int size;
|
||||
|
||||
[HideInInspector] public Queue<GameObject> determinedPool;
|
||||
[HideInInspector] public List<GameObject> undeterminedPool;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue