private void InitItems() { this.listData = this.gameData.LeaderBoardData; this.UpdateMyRank(); object[] rankOfType = this.GetRankOfType(); this.itemObjects = new List<GameObject>(); if (rankOfType != null) { for (int j = 0; j < rankOfType.Length; j++) { this.itemObjects.Add(GameObjectUtil.InstantiateItemAsChildOf(this.rankItemPrefab, this.itemParent)); } } this.itemContainer.SetItems(this.itemObjects); for (int i = 0; i < rankOfType.Length; i++) { GameObject obj2 = this.itemObjects[i]; obj2.GetComponent<LeaderBoardRankItem>().SetRankItem(rankOfType[i] as LeaderBoardBasicData); } }
public void CompleteResetGameData() { this._loginInfo = null; this._userInfo = null; this._userFleets = null; this._userShips = null; this._userItemsDic = null; this._userEquipmentDic = null; this._userDocks = null; this._userEquipDocks = null; this._userRepairDocks = null; this._userRepairDic = null; this.shipsDic = null; this._shipBuildLogs = null; this._equipBuildLogs = null; this._unlockedCards = null; this.lastUpdatePVPTime = new DateTime(0x7c6, 1, 1); this._pvpOpponents = null; this._allQuests = null; this.lastUpdateQuestTime = new DateTime(0x7c6, 1, 1); this.lastUpdateLeaderBoardTime = new DateTime(0x7c6, 1, 1); this._lastGetBuildLogTime = new DateTime(0x7c6, 1, 1); this._lastGetEquipBuildLogTime = new DateTime(0x7c6, 1, 1); this._leaderBoardData = null; this.IsCampaignDataInited = false; this._openedCampaignLevels = null; this._campaignChapterTimesInfo = null; this._campaignFleets = null; this._totalCampainInfo = null; this.shopItemCanBuyStatus = null; this.passedEventNodeIds = null; this.haveGotPVEEventData = false; this.passedPVEEventLevels = null; this.passedPVEEventLevelsDic = null; this.ResetPVEData(); }
public void SetLeaderBoardData(LeaderBoardListData listData) { this._leaderBoardData = listData; this.SetLastGetLeaderBoardDataTime(); }