コード例 #1
0
 public void Fire()
 {
     for (int i = 0; i < loadPartyData.Count; i++)
     {
         if (loadPartyData[i]["ID"].ToString() == current_party)
         {
             loadPartyData[i]["IS_PARTY"] = 0;
             partyid.Remove(current_party);
             break;
         }
     }
     jsonFileWriter.DeserializeData("PARTY_TABLE");
     status.text = "";
     Party_Face_init();
     current_party = "";
 }
コード例 #2
0
    public void Hire()
    {
        for (int i = 0; i < loadPartyData.Count; i++)
        {
            if (loadPartyData[i]["ID"].ToString() == party_id)
            {
                if (loadPartyData[i]["IS_PARTY"].ToString() == "0")
                {
                    loadPartyData[i]["IS_PARTY"] = 1;
                    break;
                }
            }
        }

        jsonFileWriter.DeserializeData(loadPartyData);
        Char_Face_init();
        PartyInfoOff();
    }
コード例 #3
0
    public void OpenBox()
    {
        if (trigger == "0")
        {
            this.gameObject.GetComponent <SpriteRenderer>().sprite = box[1];
            loadData[current_num]["TRIGER"] = 1;
            trigger = "1";
            textbox.SetActive(true);
            textbox_t.text = text[0];

            //    ingameManager.additemManager.Add_Item_Value(Int32.Parse(item_id));
        }
        else if (trigger == "1")
        {
            textbox.SetActive(true);
            textbox_t.text = text[1];
        }
        jsonFileWriter.DeserializeData(loadData);
    }