public void ConfirmBuy() { pTaobaoMgr.ConfirmBuy(wantBuyIdx); if (pTaobaoMgr.GetDetailItem(wantBuyIdx).CardRelate != "") { string cardName = pTaobaoMgr.GainCard(wantBuyIdx); if (cardName != "") { mUIMgr.ShowHint("获得卡牌: " + cardName); } } if (pTaobaoMgr.GetDetailItem(wantBuyIdx).ShuxingRelate != "") { string shuxingInfo = pTaobaoMgr.GainShuxing(wantBuyIdx); if (shuxingInfo != "") { mUIMgr.ShowHint("获得属性: " + shuxingInfo); } } ShowItems(); pMainUI.UpdateWords(); }
public void handleReviewEffect(int idx) { int value = curWeibo.reviews[idx].value; switch (curWeibo.reviews[idx].effect) { case WeiboReviewEffect.AddCaiyi: pRoleMgr.AddCaiyi(value); mUIMgr.ShowHint("才艺 + " + value); break; case WeiboReviewEffect.AddJishu: pRoleMgr.AddJishu(value); mUIMgr.ShowHint("技术 + " + value); break; case WeiboReviewEffect.AddKangya: pRoleMgr.AddKangya(value); mUIMgr.ShowHint("抗压 + " + value); break; case WeiboReviewEffect.AddWaiguan: pRoleMgr.AddWaiguan(value); mUIMgr.ShowHint("外观 + " + value); break; case WeiboReviewEffect.AddKoucai: pRoleMgr.AddKoucai(value); mUIMgr.ShowHint("口才 + " + value); Debug.Log("ADDKOUCAI"); break; case WeiboReviewEffect.AddAllState: pRoleMgr.AddKoucai(value); pRoleMgr.AddWaiguan(value); pRoleMgr.AddKangya(value); pRoleMgr.AddJishu(value); pRoleMgr.AddCaiyi(value); mUIMgr.ShowHint("所有属性 + " + value); break; case WeiboReviewEffect.AddFensi: //TODO Addfensi //pRoleMgr.AddFensi(value); break; case WeiboReviewEffect.none: break; } pMainUI.UpdateWords(); }
public void LearnCurSkill() { if (selectedSkillId == "") { return; } bool success = pSkillMgr.learnSkill(selectedSkillId); if (success) { skillViewMap[selectedSkillId].ShowStar(); UpdateSkillPoint(); UpdateLearnedStatus(selectedSkillId); pMainUI.UpdateWords(); } }