public void insertCard(string cardName) { List <string> st = new List <string>(); st.Add(cardName); pCardMdl.AddCards(st); }
public void InitRole(string roleId) { RoleStoryAsset ret = GameMain.GetInstance().GetModule <ResLoader>().LoadResource <RoleStoryAsset>("Roles/role" + roleId); roleStats.meili = ret.initProperties[0]; roleStats.tili = ret.initProperties[1]; roleStats.koucai = ret.initProperties[2]; roleStats.jiyi = ret.initProperties[3]; roleStats.fanying = ret.initProperties[4]; money = ret.initMoney; pCardMdl.AddCards(ret.initCards); pCardMdl.AddCards(ret.initOwning); FakePlatformInfo(); NowPlatformId = "begin"; }
public void InitRole(string roleId) { RoleStoryAsset ret = GameMain.GetInstance().GetModule <ResLoader>().LoadResource <RoleStoryAsset>("Roles/role" + roleId); roleStats.waiguan = ret.initProperties[0]; roleStats.caiyi = ret.initProperties[1]; roleStats.kangya = ret.initProperties[2]; roleStats.jishu = ret.initProperties[3]; roleStats.koucai = ret.initProperties[4]; //初始金钱 money = ret.initMoney + 0; pCardMdl.AddCards(ret.initCards); pCardMdl.AddCards(ret.initOwning); BadPoint = 20; XinqingLevel = 10; FakePlatformInfo(); NowPlatformId = "begin"; }
//public void getRandomCard() //{ // int randInt = UnityEngine.Random.Range(1,5); // cardName = "card800" + randInt.ToString(); //} public void insertCard(string cardName) { if (cardName != null) { List <string> st = new List <string>(); st.Add(cardName); pCardMdl.AddCards(st); CardAsset ca = pCardMdl.Load(cardName); if (ca != null) { mUIMgr.ShowHint("获得卡牌:" + ca.CardName); } } }