public void AddComponent(string name, Type componentType, Type stateinterfaceType, string runAfter) { var c = new Component(name, componentType, stateinterfaceType); _components.Add(name, c); int position = _componentsOrder.IndexOf(runAfter); _componentsOrder.Insert(position + 1, name); }
public void AddComponent(string name, Type componentType, Type stateinterfaceType) { var c = new Component(name, componentType, stateinterfaceType); _components.Add(name, c); _componentsOrder.Add(name); }