private AddToPool ( string prefab, string tag, Queue |
||
prefab | string | |
tag | string | |
pool | Queue |
|
리턴 | void |
private void AddToPool(string prefab, string tag, Queue<Entity> pool)
{
var entity = this.EntityManager.Instantiate(prefab);
entity.Tag = tag;
pool.Enqueue(entity);
}