Nez.Portable/ECS/InternalUtils/EntityList.cs
/// <summary>
/// removes an Entity from the list. All lifecycle methods will be called in the next frame.
/// </summary>
/// <param name="entity">Entity.</param>
removes an Entity from the list. All lifecycle methods will be called in the next frame.
removes an Entity from the list . All lifecycle methods will be called in the next frame .
public void remove(Entity entity)
        {
            Debug.warnIf(
                _entitiesToRemove.Contains(entity),
                "You are trying to remove an entity ({0}) that you already removed",
                entity.name);
            if (_entitiesToAdd.Contains(entity))
            {
                _entitiesToAdd.Remove(entity);
                return;
            }
            if (!_entitiesToRemove.Contains(entity))
                _entitiesToRemove.Add(entity);
        }
public void remove ( Entity entity ) { Debug . warnIf ( _entitiesToRemove . Contains ( entity ) , " " , entity . name ) ; if ( _entitiesToAdd . Contains ( entity ) ) { _entitiesToAdd . Remove ( entity ) ; return ; } if ( ! _entitiesToRemove . Contains ( entity ) ) _entitiesToRemove . Add ( entity ) ; }
removes an Entity from the list.
removes an Entity from the list .
// guard against adding and then removing an Entity in the same frame
entity
Entity
None