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; } }
public Color GetFoodColor(FoodItem.FoodType type) { return(foodColors.Find(fc => fc.type == type).color); }
public static bool IsFastFood(this FoodItem.FoodType type) { return(!type.IsHealthyFood()); }
public static bool IsHealthyFood(this FoodItem.FoodType type) { return(type >= FoodItem.FoodType.Cucumber); }