public void SetFeature(int iFeature) { // 顯示取得的特性. DBFFeature pDBFFeature = GameDBF.GetFeature(iFeature) as DBFFeature; pLb.text = GameDBF.GetLanguage(pDBFFeature.StrID); pSBg.width = pLb.width + 12; pSBg.height = pLb.height + 5; }
public void SetInfo(int iIndex, int iID) { if (iIndex >= DataPlayer.pthis.MemberParty[iID].Feature.Count) { gameObject.SetActive(false); return; } else { gameObject.SetActive(true); } DBFFeature pDBFFeature = GameDBF.GetFeature(DataPlayer.pthis.MemberParty[iID].Feature[iIndex]) as DBFFeature; S_Icon.spriteName = string.Format("ui_feature_{0:000}", DataPlayer.pthis.MemberParty[iID].Feature[iIndex]); Lb_Src.text = GameDBF.GetLanguage(pDBFFeature.StrID) + "\n" + GameDBF.GetLanguage(pDBFFeature.Description); }