예제 #1
0
        public void AddComponent(CWComponent component)
        {
            if (components == null)
                components = new List<CWComponent>();

            components.Add(component);

            component.AddedToObject(this);
        }
예제 #2
0
        public void AddComponent(CWComponent component)
        {
            if (components == null)
            {
                components = new List <CWComponent>();
            }

            components.Add(component);

            component.AddedToObject(this);
        }
예제 #3
0
        public void RemoveComponent(CWComponent component)
        {
            components.Remove(component);

            component.RemovedFromObject();
        }
예제 #4
0
        public void RemoveComponent(CWComponent component)
        {
            components.Remove(component);

            component.RemovedFromObject();
        }