예제 #1
0
 public void Register(PacemakerComponent _GameComponent)
 {
     GameObjects.Add(_GameComponent);
     if(_GameComponent.getCollisonObject() != null)
         collisionObjects.Add(_GameComponent.getCollisonObject());
     _GameComponent.Initialize();
 }
예제 #2
0
 public void Unregister(PacemakerComponent _GameComponent)
 {
     GameObjects.Remove(_GameComponent);
     if (_GameComponent.getCollisonObject() != null)
     collisionObjects.Remove(_GameComponent.getCollisonObject());
 }