void ShowSearchOppoent(int continueSecond, int Progress) { UIStage = 0; SearchSecond = continueSecond; Countdown.text = StrDictionary.GetClientDictionaryString("#{4809}", SearchSecond); searchTip.text = Utils.GetDicByID(4810); progress.text = WuLinData.WuLinRounderTip(); CleanViewInfoUI(); }
void ShowOpponentView() { UIStage = 1; SearchSecond = 0; progress.text = WuLinData.WuLinRounderTip(); if (WuLinData.OppoViewInfo.guid == Games.GlobeDefine.GlobeVar.INVALID_GUID) { string text = ""; if (WuLinData.Rounder == 1) { text = StrDictionary.GetClientDictionaryString("#{4813}"); } else { string roundTips = WuLinData.WuLinRoundTipPrefix(); text = StrDictionary.GetClientDictionaryString("#{4814}", roundTips); } searchTip.text = text; Countdown.text = text; } else { searchTip.text = Utils.GetDicByID(1845); Countdown.text = Utils.GetDicByID(1845); int id = (int)WuLinData.OppoViewInfo.profession; Tab_RoleBaseAttr roleBaseAttr = TableManager.GetRoleBaseAttrByID(id, 0); if (roleBaseAttr != null) { Tab_CharModel charModel = TableManager.GetCharModelByID(roleBaseAttr.CharModelID, 0); if (charModel != null) { HeadIcon.spriteName = charModel.HeadPic; } } // if( id >= 0 && id < CharacterDefine.PROFESSION_DICNUM.Length) { Profession.text = Utils.GetProfessionNameByType(id); //Utils.GetDicByID(CharacterDefine.PROFESSION_DICNUM[id]); } } Name.text = WuLinData.OppoViewInfo.name; CombatNum.text = WuLinData.OppoViewInfo.combat.ToString(); HP.text = WuLinData.OppoViewInfo.hp.ToString(); MP.text = WuLinData.OppoViewInfo.mp.ToString(); Attack.text = WuLinData.OppoViewInfo.atk.ToString(); Defense.text = WuLinData.OppoViewInfo.def.ToString(); Critical.text = WuLinData.OppoViewInfo.cri.ToString(); Speed.text = WuLinData.OppoViewInfo.spd.ToString(); dodge.text = WuLinData.OppoViewInfo.dge.ToString(); }