30 lines
1.0 KiB
C#
Raw Normal View History

2025-01-02 12:15:45 +08:00
using CG.Framework;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/*******************************************************************************
*Create By CG
*Function
*******************************************************************************/
namespace ZXK.LouDiXvMuNiu
{
public class HomePanel : UIBase
{
protected override void Awake()
{
base.Awake();
AddEventListener("Teach_N", UIEventType.OnButtonClick, () =>
{
GameManager.Instance._IsTrain = true;
GameManager.Instance._StateContext.SetState(
new ModelSelectState(GameManager.Instance._StateContext));
});
AddEventListener("Train_N", UIEventType.OnButtonClick, () =>
{
GameManager.Instance._IsTrain = false;
GameManager.Instance._StateContext.SetState(
new ModelSelectState(GameManager.Instance._StateContext));
});
}
}
}