21 lines
581 B
C#
21 lines
581 B
C#
|
|
|
|||
|
|
/********************************************************************************
|
|||
|
|
*Create By CG
|
|||
|
|
*Function ״̬<EFBFBD>ӿ<EFBFBD>
|
|||
|
|
*********************************************************************************/
|
|||
|
|
namespace CG.Framework
|
|||
|
|
{
|
|||
|
|
public abstract class State
|
|||
|
|
{
|
|||
|
|
protected StateContext _stateContext;
|
|||
|
|
public StateContext _StateContext => _stateContext;
|
|||
|
|
public abstract string _SceneName { get; }
|
|||
|
|
|
|||
|
|
public State(StateContext stateContext)
|
|||
|
|
{
|
|||
|
|
_stateContext = stateContext;
|
|||
|
|
}
|
|||
|
|
public abstract void EnterState();
|
|||
|
|
}
|
|||
|
|
}
|