Nez.Portable/ECS/Entity.cs
/// <summary>
/// Called when this entity is removed from a scene
/// </summary>
Called when this entity is removed from a scene
Called when this entity is removed from a scene
public virtual void onRemovedFromScene()
        {
            if (_isDestroyed)
                components.removeAllComponents();
        }
public virtual void onRemovedFromScene ( ) { if ( _isDestroyed ) components . removeAllComponents ( ) ; }
Called when this entity is removed from a scene
Called when this entity is removed from a scene
// if we were destroyed, remove our components. If we were just detached we need to keep our components on the Entity.