private void CheckForDistractingItems() { int distractingItemCount = 0; foreach (Item item in PlayerData.selectedItems) { if (item.distracting) { npcThoughtsText.GetComponent <Text>().text = item.comment; distractingItemCount++; } } if (distractingItemCount > 0) { if (distractingItemCount > 1 && PlayerData.selectedItems.Count == distractingItemCount) { npcThoughtsText.GetComponent <Text>().text = "This is weird, why do they need all of these items for the interview?"; } else if (distractingItemCount > 1) { npcThoughtsText.GetComponent <Text>().text = "This is weird, why do they need some of these items for the interview?"; } NPCData.SetMaxComfortValue(distractingItemCount); InfoCon conToAdd = feedbackData.cons.SingleOrDefault(i => i.id == "3"); PlayerData.cons.Add(conToAdd); npcThoughtsBubble.SetActive(true); } }
private void CheckForRequiredItems() { int requiredItemsCount = 0; foreach (Item item in PlayerData.selectedItems) { if (item.required) { requiredItemsCount++; } } if (requiredItemsCount == 0) { InfoCon conToAdd = feedbackData.cons.SingleOrDefault(i => i.id == "16"); PlayerData.cons.Add(conToAdd); } }