Nez.Portable/ECS/Component.cs
/// <summary>
/// creates a clone of this Component. The default implementation is just a MemberwiseClone so if a Component has object references
/// that need to be cloned this method should be overriden.
/// </summary>
creates a clone of this Component. The default implementation is just a MemberwiseClone so if a Component has object references
that need to be cloned this method should be overriden.
creates a clone of this Component . The default implementation is just a MemberwiseClone so if a Component has object references that need to be cloned this method should be overriden .
public virtual Component clone()
        {
            var component = MemberwiseClone() as Component;
            component.entity = null;
            return component;
        }
public virtual Component clone ( ) { var component = MemberwiseClone ( ) as Component ; component . entity = null ; return component ; }
creates a clone of this Component.
creates a clone of this Component .