FerretEngine/src/Core/Entity.cs
/// <summary>
/// Actually adds a component dequeued from the <see cref="_createQueue"/>.
/// </summary>
/// <param name="component"></param>
Actually adds a component dequeued from the .
Actually adds a component dequeued from the .
private void AddComponent(Component component)
        {
            _components.Add(component);
            if (component is Collider)
            {
                Collider col = (Collider) component;
                _colliders.Add(col);
                if (this.Scene != null)
                    this.Scene.Space.Add(col);
            }
        }
private void AddComponent ( Component component ) { _components . Add ( component ) ; if ( component is Collider ) { Collider col = ( Collider ) component ; _colliders . Add ( col ) ; if ( this . Scene != null ) this . Scene . Space . Add ( col ) ; } }
Actually adds a component dequeued from the .
Actually adds a component dequeued from the .
component
Component
None