コード例 #1
0
 public void Activate(FoodItem.FoodType type)
 {
     IsActivated  = true;
     back.enabled = true;
     for (int i = 0; i < foodSprites.Count; i++)
     {
         foodSprites[i].Sprite.enabled = foodSprites[i].Type == type;
     }
 }
コード例 #2
0
 public Color GetFoodColor(FoodItem.FoodType type)
 {
     return(foodColors.Find(fc => fc.type == type).color);
 }
コード例 #3
0
ファイル: Util.cs プロジェクト: SavaMinic/badboxart2017
 public static bool IsFastFood(this FoodItem.FoodType type)
 {
     return(!type.IsHealthyFood());
 }
コード例 #4
0
ファイル: Util.cs プロジェクト: SavaMinic/badboxart2017
 public static bool IsHealthyFood(this FoodItem.FoodType type)
 {
     return(type >= FoodItem.FoodType.Cucumber);
 }