public void AddComponent(Component component) { _components.Add(component.GetType(), component); component.AttachToGameObject(this, _registry); }