// UPGRADE PART public void SomeFaceHovered(InteractableElt target, bool isHovered) { if (currentlySelectedFace == null) { bool isCursed = false; target.myFaceRef.effects.ForEach(x => isCursed = isCursed || (x.nameEffect == "Cursed")); DisplayFace(target.gameObject, isHovered); if (isHovered && !isCursed) { myUpgradedFacesDisplayer.DisplayDice(GenerateUpgrades(target.myFaceRef)); } else { myUpgradedFacesDisplayer.Hide(); } } }
public void CollectLoot(Item collected) { if (collected.myInfo.myName == "Gold") { thePlayer.myInfo.gold += collected.myInfo.goldValue; thePlayer.myGold.GetComponent <Text>().text = thePlayer.myInfo.gold + ""; } else { thePlayer.myInventory.Add(collected); } myLootChoiceDisplayer.Hide(); }
public void DisplayMeltingIngredients(bool display) { if (display) { meltMenu.SetActive(true); meltCollectionDisplayer.DisplayItemCollection(meltCollection); thePlayer.SetSlotInteractability(false); } else { meltMenu.SetActive(false); meltCollectionDisplayer.Hide(); meltSelection = new List <Item>(); thePlayer.SetSlotInteractability(true); } }