public Recipe(string[] row) { Names = new Dictionary <Language, string>(); ingredients = new Dictionary <IngredientType1, IngredientName>(); strong = false; if (row.Length > 0) { result = (FoodName)Enum.Parse(typeof(FoodName), row[0]); Names[Language.Korean] = row[1]; if (row.Length > 7) { Names[Language.English] = row[7]; } else { Names[Language.English] = result.ToString(); } process = (CookProcess)Enum.Parse(typeof(CookProcess), row[2]); for (int i = 3; i < 6; i++) { ingredients[(IngredientType1)i - 3] = (IngredientName)Enum.Parse(typeof(IngredientName), row[i]); } strong = (row[6] == "strong"); } else { Names[Language.English] = "trash"; Names[Language.Korean] = "음식물 쓰레기"; result = FoodName.trash; process = CookProcess.none; } }
private void Start() { x = transform.GetSiblingIndex(); type = (CookProcess)x; CookManager.instance.languageChange += SetName; SetName(); }
public void SelectCookProcess(CookProcess cp) { selectedCookProcess = cp; }