Unity - A计划(永久有效期) 扫二维码继续学习 二维码时效为半小时

(207评价)
优惠后 ¥1899.00优惠前 ¥2499.00 双十一全年最大力度限时优惠
1对1 答疑即时回复7天无理由退款30天价保提问必答

服务保障

1对1 答疑

提供专属的一对一在线答疑,快速答疑解惑。

即时回复

及时响应学习咨询,帮助解决问题。

7天无理由退款

购买后7天内可申请无理由退款。

30天价保

购买后30天内如遇降价,可申请价保。

提问必答

对于提问做到有问必答,帮您扫清学习过程中的种种障碍

请问下面这段代码什么情况下会返回false?
靖宝宝的boy发起了问答2017-08-02
2
回复
448
浏览
private bool LoadGamerProfile_Version_1(string[] profileList)
        {
            int index = 1;
            playerMoney = Convert.ToInt32(profileList[index]); index += 1;
            playerLastChacterIndex = Convert.ToInt32(profileList[index]); index += 1;
            defBuyItemId = Convert.ToInt32(profileList[index]); index += 1;

            characterData = new PlayerChacterData[IGamerProfile.gameCharacter.characterDataList.Length];
            for (int i = 0; i < characterData.Length; i++)
            {
                characterData[i] = new PlayerChacterData();
                characterData[i].isactive = Convert.ToInt32(profileList[index]) == 1; index += 1;
                characterData[i].level = Convert.ToInt32(profileList[index]); index += 1;
                characterData[i].activeMoney = Convert.ToInt32(profileList[index]); index += 1;
            }
            characterData[0].isactive = true;

            mapData = new MapData[4];
            for (int i = 0; i < mapData.Length; i++)
            {
                mapData[i] = new MapData();
                mapData[i].isActive = Convert.ToInt32(profileList[index]) == 1; index += 1;
                mapData[i].activeMoney = Convert.ToInt32(profileList[index]); index += 1;
            }
            mapData[0].isActive = true;

            levelProcess = new int[IGamerProfile.gameLevel.mapData.Length];
            for (int i = 0; i < levelProcess.Length; i++)
            {
                levelProcess[i] = Convert.ToInt32(profileList[index]); index += 1;
            }
            for (int i = 0; i < equipCount.Length; i++)
            {
                equipCount[i] = Convert.ToInt32(profileList[index]); index += 1;
            }
            for (int i = 0; i < skillCount.Length; i++)
            {
                skillCount[i] = Convert.ToInt32(profileList[index]); index += 1;
            }
            return true;
        }

 

所有回复
发表回复
你还没有登录,请先 登录或 注册!