public void Initialize(EiPrefab prefab) { this.prefab = prefab; if (fillAtAwake) { Fill(); } optimizedCallbacks = poolableCallbacks && prefab.GameObject.GetComponent <EiEntity>(); }
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); }