public TestEntity(IGameObjectService gameObjectService, bool isGameObject) { if (isGameObject) { gameObjectService.AddEntity(this); } }