using System.Collections.Generic; using FairyGUI; using UI.Studio; namespace GFGGame { //金属副本 public class StudioMetalView : StudioBaseView { public override void Dispose() { base.Dispose(); } protected override void OnInit() { base.OnInit(); _ui.m_btnBack.onClick.Add(OnClickBtnBack); } protected override void OnShown() { _ui.m_c1.selectedIndex = 0; this.studioCfg = StudioCfgArray.Instance.GetCfgs(typeof(StudioMetalView).FullName)[0]; this.storyLevelCfgs = StoryLevelCfgArray.Instance.GetCfgs(this.studioCfg.type, this.studioCfg.subType, this.studioCfg.id); _ui.m_list.numItems = this.storyLevelCfgs.Length; base.OnShown(); } protected override void OnHide() { base.OnHide(); } private void OnClickBtnBack() { ViewManager.GoBackFrom(typeof(StudioMetalView).FullName); } } }