Ejemplo n.º 1
0
        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);
            }
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 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;
 }