WaveFrogger.Services.EntityPoolComponent.AddToPool C# (CSharp) Method

AddToPool() private method

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