private void ApplyTempSaveData() { PlayerUITempSaveData uiTempSaveData = Singleton <PlayerModule> .Instance.playerData.uiTempSaveData; if (uiTempSaveData.lastSelectedAvatarID != 0) { base.view.transform.Find("ListPanel/ScrollView").GetComponent <MonoGridScroller>().SetNormalizedPosition(uiTempSaveData.avatarOverviewPageScrollerPos); } }
private void SetUITempSaveData() { PlayerUITempSaveData uiTempSaveData = Singleton <PlayerModule> .Instance.playerData.uiTempSaveData; uiTempSaveData.lastSelectedAvatarID = this.selectedAvatarID; uiTempSaveData.avatarOverviewPageScrollerPos = base.view.transform.Find("ListPanel/ScrollView").GetComponent <MonoGridScroller>().GetNormalizedPosition(); base.view.transform.Find("Info/Unlock/Left/Info_2").gameObject.SetActive(true); base.view.transform.Find("Info/Unlock/Right/Weapon").gameObject.SetActive(true); base.view.transform.Find("Info/Unlock/Right/Stigmata").gameObject.SetActive(true); base.view.transform.Find("Info/Unlock/Right/Skill").gameObject.SetActive(true); base.view.transform.Find("Info/RightEdge").gameObject.SetActive(true); base.view.transform.Find("Info/LeftEdge").gameObject.SetActive(true); }
public PlayerDataItem(int teamLevel = 1) { this.teamLevel = teamLevel; this.OnLevelChange(this.teamLevel, this.teamLevel); this.costAddByAvatarStar = new Dictionary <int, int>(); this.teamDict = new Dictionary <StageType, List <int> >(); this.gachaTicketPriceDict = new Dictionary <int, int>(); this.scoinExchangeCache = new CacheData <PlayerScoinExchangeInfo>(); this.staminaExchangeCache = new CacheData <PlayerStaminaExchangeInfo>(); this.skillPointExchangeCache = new CacheData <PlayerSkillPointExchangeInfo>(); this._cacheDataUtil = new CacheDataUtil(); this._cacheDataUtil.CreateCacheUtil(ECacheData.Stamina, this.staminaExchangeCache, new Action(Singleton <NetworkManager> .Instance.RequestGetStaminaExchangeInfo), 0x11); this.uiTempSaveData = new PlayerUITempSaveData(); this.signInStatus = null; this.initByGetMainDataRsp = false; }