예제 #1
0
    public void Set_Weapon_Val()
    {
        Weapon_info weapon_Info = BackEndDataManager.instance.Weapon_Data.weapon_Info.Find(x => x.int_num.Equals((int)data["num"]) && x.enum_weapon.Equals(Weapon_.Weapon_Content));

        if (weapon_Info == null)
        {
            txt_Weapon_val.text = "0";
        }
        else
        {
            txt_Weapon_val.text = weapon_Info.int_val.ToString();
        }
    }
예제 #2
0
    public void Set_Weapon_Lv()
    {
        Weapon_info weapon_Info = BackEndDataManager.instance.Weapon_Data.weapon_Info.Find(x => x.int_num.Equals((int)data["num"]) && x.enum_weapon.Equals(Weapon_.Weapon_Content));

        txt_Weapon_Lv.text = string.Format("{0}.{1}", "Lv", weapon_Info == null?0: weapon_Info.int_lv);
    }