public void AddComponent(CWComponent component) { if (components == null) components = new List<CWComponent>(); components.Add(component); component.AddedToObject(this); }
public void AddComponent(CWComponent component) { if (components == null) { components = new List <CWComponent>(); } components.Add(component); component.AddedToObject(this); }
public void RemoveComponent(CWComponent component) { components.Remove(component); component.RemovedFromObject(); }