37 lines
1.3 KiB
C#
37 lines
1.3 KiB
C#
using CG.Framework;
|
||
using System;
|
||
/********************************************************************************
|
||
*Create By CG
|
||
*Function 主页状态
|
||
*********************************************************************************/
|
||
namespace ZXK.GYJQR
|
||
{
|
||
public class TeachState : State
|
||
{
|
||
//需要加载的指定UI,,[TODO 状态模式没有和视图融合]
|
||
protected string _childrenPanelName;
|
||
|
||
|
||
public TeachState(StateContext stateContext,string childrenPanelName) : base(stateContext)
|
||
{
|
||
_childrenPanelName = childrenPanelName;
|
||
}
|
||
|
||
public override string _SceneName => "Home";
|
||
public override void EnterState()
|
||
{
|
||
if (!string.IsNullOrEmpty(_childrenPanelName))
|
||
{
|
||
if (_childrenPanelName.Equals("TeachVideoPanel"))
|
||
{
|
||
UI_Manage.Instance.ShowPanel(_childrenPanelName, Type.GetType("ZXK.GYJQR."+ _childrenPanelName), UIGroup.Top);
|
||
}
|
||
else if (_childrenPanelName.Equals("DataShowPanel"))
|
||
{
|
||
UI_Manage.Instance.ShowPanel(_childrenPanelName, Type.GetType("ZXK.GYJQR." + _childrenPanelName), UIGroup.Main);
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|