void cacheTransformInspector() { // add Transform separately var transformInspector = new ComponentInspector(entity.transform); transformInspector.initialize(_table, _skin); _components.Add(transformInspector); }
ComponentInspector getOrCreateComponentInspector(Component comp) { var inspector = _components.Where(i => i.component == comp).FirstOrDefault(); if (inspector == null) { inspector = new ComponentInspector(comp); inspector.initialize(_table, _skin); _components.Add(inspector); } return(inspector); }