예제 #1
0
 private void ClcikToggle()
 {
     if (UIToggle.current.value)
     {
         foreach (KeyValuePair <SummonerType, UIToggle> current in this.summonerDictToggle)
         {
             if (UIToggle.current == current.Value)
             {
                 this.currentSummonerType = current.Key;
             }
         }
         this.ShowPanel(this.currentSummonerType);
     }
 }
예제 #2
0
        private void ShowPanel(SummonerType type)
        {
            this.passportTrans.gameObject.SetActive(false);
            this.summonerSkillTrans.gameObject.SetActive(false);
            switch (type)
            {
            case SummonerType.Passport:
                this.passportTrans.gameObject.SetActive(true);
                this.passportView.RefreshUI();
                break;

            case SummonerType.DreamVIP:
                Singleton <TipView> .Instance.ShowViewSetText("暂未开放", 1f);

                break;

            case SummonerType.SummonerSkill:
                this.summonerSkillTrans.gameObject.SetActive(true);
                this.summonerSkillView.RefreshUI();
                break;
            }
        }
예제 #3
0
 public override void CancelUpdateHandler()
 {
     this.passportView.CancelUpdateHandler();
     this.summonerSkillView.CancelUpdateHandler();
     this.currentSummonerType = SummonerType.Passport;
 }