using System.Collections; using System.Collections.Generic; using System.Linq; using UnityEngine; using ZXK.Framework; using ZXK.UTility; /******************************************************************************* *Create By CG *Function 二级种类菜单控制 *******************************************************************************/ namespace ZXK.BYSS { public class Select2Panel : UIBase { private void Start() { if (AppManagement.Instance._FirstEnterApp) { GetWedage("AlertUIPrefab_N").SetActive(true); foreach (HintModel.AppHintData item in AppManagement.Instance._HintData._AppHints) { if (item._AppName.Equals(EnumCtrl.GetEnumDescription(AppManagement.Instance._CurType))) { SetText("ObjectiveHintTxt_N", item._AppHint); } } AppManagement.Instance._FirstEnterApp = false; } AddEventListener("ConfirmBtn_N", UIEventType.OnButtonClick, () => { GetWedage("AlertUIPrefab_N").SetActive(false); }); AddEventListener("TrainBtn_N", UIEventType.OnButtonClick, () => { AppManagement.Instance.ChangeModel(EnumCtrl.Model.Select3); }); AddEventListener("CognizeBtn_N", UIEventType.OnButtonClick, () => { AppManagement.Instance.ChangeModel(EnumCtrl.Model.Cognize); }); } } }