public void Convert(Entity entity, EntityManager dstManager, GameObjectConversionSystem conversionSystem) { dstManager.AddComponentData(entity, new FoodTypeData { FoodTypeId = foodType.GetInstanceID(), FoodPoints = foodType.FoodPoints }); }