37 lines
1.3 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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