public void RemoveComponent(AComponent component) { if (m_components.Contains(component)) { m_components.Remove(component); component.Entity = null; CEngine.Instance.MatchSystemsAddComponent(this); } }
public void AddComponent(AComponent component) { if (!m_components.Contains(component)) { m_components.Add(component); component.Entity = this; CEngine.Instance.MatchSystemsAddComponent(this); } }