public void Enqueue(PrefabWithPrefabCategoryAssociation association) { if (association != null) { _associationQueue.Enqueue(association); } }
public void DequeueAndPerform() { if (_associationQueue.Count != 0) { PrefabWithPrefabCategoryAssociation association = _associationQueue.Dequeue(); association.Perform(); } }
private static PrefabWithPrefabCategoryAssociation CreateNewAssociation(Prefab prefab, PrefabCategory prefabCategory) { var association = new PrefabWithPrefabCategoryAssociation(); association.Prefab = prefab; association.PrefabCategory = prefabCategory; return(association); }