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); } }
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; } }
public override void CancelUpdateHandler() { this.passportView.CancelUpdateHandler(); this.summonerSkillView.CancelUpdateHandler(); this.currentSummonerType = SummonerType.Passport; }