public void AddComponent(Component component) { component.entity = this; componentContainer.Add(component); ComponentManager.GetInstance().Add(component, component.GetType()); }