Example #1
0
        public void Initialize(EiPrefab prefab)
        {
            this.prefab = prefab;
            if (fillAtAwake)
            {
                Fill();
            }

            optimizedCallbacks = poolableCallbacks && prefab.GameObject.GetComponent <EiEntity>();
        }
Example #2
0
 public bool IsCorrect(EiPrefab item, string path)
 {
     if (pathFilter != null && !path.Contains(pathFilter))
     {
         return(false);
     }
     if (typeFilter == null)
     {
         return(true);
     }
     return(item.Item.GetComponent(typeFilter) != null);
 }