30 lines
1.0 KiB
C#
30 lines
1.0 KiB
C#
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));
|
|
});
|
|
}
|
|
}
|
|
} |