コード例 #1
0
 public void Convert(Entity entity, EntityManager dstManager, GameObjectConversionSystem conversionSystem)
 {
     dstManager.AddComponentData(entity, new FoodTypeData
     {
         FoodTypeId = foodType.GetInstanceID(),
         FoodPoints = foodType.FoodPoints
     });
 }