示例#1
0
 public void RemoveComponent(RenderComponent cmp)
 {
     components.Remove(cmp);
     if (cmp != null)
         cmp.renderManager = null;
 }
示例#2
0
 public void AddComponent(RenderComponent cmp)
 {
     components.Add(cmp);
     cmp.renderManager = this;
     cmp.Init();
 }