Nez.Portable/ECS/Scene.cs
/// <summary>
/// Adds and returns a SceneComponent to the components list
/// </summary>
/// <returns>Scene.</returns>
/// <typeparam name="T">The 1st type parameter.</typeparam>
Adds and returns a SceneComponent to the components list
Adds and returns a SceneComponent to the components list
public T addSceneComponent<T>(T component)
            where T : SceneComponent
        {
            component.scene = this;
            component.onEnabled();
            _sceneComponents.add(component);
            _sceneComponents.sort();
            return component;
        }
public T addSceneComponent < T > ( T component ) where T : SceneComponent { component . scene = this ; component . onEnabled ( ) ; _sceneComponents . add ( component ) ; _sceneComponents . sort ( ) ; return component ; }
Adds and returns a SceneComponent to the components list
Adds and returns a SceneComponent to the components list
None
component
T
typeparam
The 1st type parameter.
The 1st type parameter .