public void SetFood(int id) { FoodID = id; this.food = new Food(db.FindFoodWithID(id)); SetSprite(); }
public void AddQuestRecipe() //퀘스트 설정 { int randFoodIndex = Random.Range(0, randFoodIDList.Count); int randFoodID = randFoodIDList[randFoodIndex]; randFoodIDList.RemoveAt(randFoodIndex); int randUseCount = Random.Range(0, currentUseCount + 1); currentUseCount -= randUseCount; QuestRecipe.Add(new Recipe(randFoodID, randUseCount, db.FindFoodWithID(randFoodID).name, 0)); }