void OnDestroy() { nameLabel = null; levelLabel = null; rankLabel = null; needPower = null; roleIconList = null; buttonLabel = null; deleteSuDiButtonObj = null; gid = null; info = null; fightOpponentInfo = null; mSelfHead = null; mVip = null; mCircleBg = null; mVipLevel = null; }
// protected List<OtherUserInfo> otherUserInfosToOtherUserDataList(OtherUserInfo[] otherUserInfos) // { // List<OtherUserInfo> otherUserInfoConfig = new List<OtherUserInfo>(); // foreach(OtherUserInfo otherUserInfo in otherUserInfos) // { // OtherUserData otherUserData = otherUserInfoToOtherUserData(otherUserInfo); // otherUserInfoConfig.Add(otherUserData); // } // return otherUserInfoConfig; // } public List <FightOpponentInfo> otherUserInfoListToFightOpponentInfoList(List <OtherUserInfo> otherUserInfoList) { List <FightOpponentInfo> fightOpponentInfoList = new List <FightOpponentInfo>(); if (otherUserInfoList != null && otherUserInfoList.Count > 0) { foreach (OtherUserInfo otherUserData in otherUserInfoList) { FightOpponentInfo fightOpponentInfo = new FightOpponentInfo(); fightOpponentInfo.g = otherUserData.g; fightOpponentInfo.r = otherUserData.r; fightOpponentInfo.n = otherUserData.n; fightOpponentInfo.lv = otherUserData.lv; fightOpponentInfo.vipLv = otherUserData.vipLv; fightOpponentInfo.p = otherUserData.p; fightOpponentInfo.hi = otherUserData.hi; fightOpponentInfo.eyid = otherUserData.eyid; fightOpponentInfoList.Add(fightOpponentInfo); } } return(fightOpponentInfoList); }