2025-02-12 08:43:33 +08:00

43 lines
1.5 KiB
C#

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);
});
}
}
}