Esempio n. 1
0
 public Quest(string n, string d, INV_Clothing r, int req)
 {
     complete    = false;
     name        = n;
     description = d;
     reward      = r;
     requirement = req;
 }
Esempio n. 2
0
 private void UpdateAttribute(INV_Clothing item)
 {
     if (item != null)
     {
         likesScore  += (int)item.m_like;
         starsScore  += (int)item.m_star;
         gemsScore   += (int)item.m_gem;
         heartsScore += (int)item.m_heart;
     }
 }
Esempio n. 3
0
    public void ObtainItem(INV_Clothing item)
    {
        if (m_wardrobe.Exists(x => x.Equals(item)))
        {
            return;
        }

        m_wardrobe.Add(item);
        item.m_obtained = true;
        item.gameObject.SetActive(true);
    }
Esempio n. 4
0
    public void PreviewClick(INV_Clothing newSelection)
    {
        m_selected = newSelection;

        m_previewGem.SetText(m_selected.Gems_Cost.ToString());
        m_previewStar.SetText(m_selected.Stars_Cost.ToString());
        m_previewHeart.SetText(m_selected.Hearts_Cost.ToString());
        m_previewLike.SetText(m_selected.Likes_Cost.ToString());

        m_previewName.SetText(m_selected.name);
        m_attribute.SetText(m_selected.m_mainAttribute.ToString());
        m_previewSprite.texture = m_selected.m_sprite.texture;
        m_buy.interactable      = true;
    }
Esempio n. 5
0
    public void SetCurrentPart()
    {
        Player       player  = Player.m_instance;
        INV_Clothing current = player.m_equipped.ContainsKey(m_type) ? player.m_equipped[m_type] : null;

        if (current != this)
        {
            if (!player.m_equipped.ContainsKey(m_type))
            {
                player.m_equipped.Add(m_type, null);
            }
            player.m_equipped[m_type] = this;
        }
        else
        {
            player.m_equipped[m_type] = null;
        }

        player.m_wardrobe.UpdateItems();
        player.UpdateAttributes();
    }