Ejemplo n.º 1
0
    // 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();
            }
        }
    }
Ejemplo n.º 2
0
    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();
    }
Ejemplo n.º 3
0
 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);
     }
 }