public Recipe(int id, int count, string name, CookRecipe cookType) { this.id = id; this.count = count; foodName = name; this.cookType = cookType; }
string ConvertKoreanFormat(CookRecipe cookType) { switch (cookType) { case CookRecipe.None: return("생 꼬치로 주세요."); case CookRecipe.Steam: return("찐 꼬치로 주세요."); case CookRecipe.Bake: return("구운 꼬치로 주세요."); default: return("생 꼬치로 주세요."); } }
public void ChangeCookType(int dir, int view) { cookTypeObject.position += dir * Vector3.left * 6f; switch (view) { case -1: cookType = CookRecipe.Steam; break; case 0: cookType = CookRecipe.None; break; case 1: cookType = CookRecipe.Bake; break; } }
public bool CheckCorrect(CookRecipe cookType) { return(this.cookType == cookType? true : false); }
public void SetCook(bool isCooked, CookRecipe recipe) { this.isCooked = isCooked; this.cookType = recipe; }