Exemple #1
0
 public void Enqueue(PrefabWithPrefabCategoryAssociation association)
 {
     if (association != null)
     {
         _associationQueue.Enqueue(association);
     }
 }
Exemple #2
0
 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);
        }