public void Register(PacemakerComponent _GameComponent) { GameObjects.Add(_GameComponent); if(_GameComponent.getCollisonObject() != null) collisionObjects.Add(_GameComponent.getCollisonObject()); _GameComponent.Initialize(); }
public void Unregister(PacemakerComponent _GameComponent) { GameObjects.Remove(_GameComponent); if (_GameComponent.getCollisonObject() != null) collisionObjects.Remove(_GameComponent.getCollisonObject()); }