Nez.Portable/ECS/Entity.cs
/// <summary>
/// removes the first Component of type T from the components list
/// </summary>
/// <param name="component">The Component to remove</param>
removes the first Component of type T from the components list
removes the first Component of type T from the components list
public bool removeComponent<T>()
            where T : Component
        {
            var comp = getComponent<T>();
            if (comp != null)
            {
                removeComponent(comp);
                return true;
            }
            return false;
        }
public bool removeComponent < T > ( ) where T : Component { var comp = getComponent < T > ( ) ; if ( comp != null ) { removeComponent ( comp ) ; return true ; } return false ; }
removes the first Component of type T from the components list
removes the first Component of type T from the components list
component
The Component to remove
The Component to remove