/// <summary> /// Removes the Component from its parent Entity. /// </summary> public void RemoveSelf() { if (Entity != null) { Entity.RemoveComponent(this); } }
/// <summary> /// Removes the Component from its parent Entity. /// </summary> public void RemoveSelf() { Entity?.RemoveComponent(this); }