internal void RemoveComponent(MyActorComponent component) { component.OnRemove(this); m_components.Remove(component); }
internal void RemoveComponent <T>(MyActorComponent component) where T : MyActorComponent { component.OnRemove(this); m_components.Remove(typeof(T)); }