public HierarchyLogicElement(HierarchyElementCreationTemplate <BufferedRectTransform> hierarchyTabTemplate, HierarchyBaseElement hierarchyBaseElement) { this.hierarchyTabTemplate = hierarchyTabTemplate; bufferedHierarchyTabElements = new BufferedArray <BufferedRectTransform>(InstantiateBufferedHierarchyTabElement, BufferHierarchyTabElement); this.hierarchyBaseElement = hierarchyBaseElement; }
public void CreateNewBufferedElementStructure <T>(HierarchyElementCreationTemplate <BufferedHierarchyObjectElement> hierarchyElementCreationTemplate) where T : BufferedHierarchyObjectElement { bufferedHierarhcyElementStructures.Add(typeof(T), new BufferedHierarhcyElementStructure(this, hierarchyElementCreationTemplate)); }
public BufferedHierarhcyElementStructure(HierarchyLogicElement hierarchyV2, HierarchyElementCreationTemplate <BufferedHierarchyObjectElement> hierarchyObjectTemplate) { this.hierarchyV2 = hierarchyV2; this.hierarchyObjectTemplate = hierarchyObjectTemplate; bufferedHierarchyObjectElements = new BufferedArray <BufferedHierarchyObjectElement>(InstantiateBufferedObjectElement, BufferBufferedObjectElement); }