My Project v1
Project
载入中...
搜索中...
未找到
Game.StateMachine
Game.StateMachine 的协作图:

class  State
 

Public 成员函数

void AddState (string name, Action enter, Action update, Action leave)
 
void TransitionTo (string stateName)
 
void Update ()
 
State FindState (string name)
 

Public 属性

Dictionary< string, Statem_states = []
 
State m_currentState
 
State m_previousState
 

属性

string PreviousState [get]
 
string CurrentState [get]
 

事件

Action< string > OnTransitionTo
 

成员函数说明

◆ AddState()

void Game.StateMachine.AddState ( string name,
Action enter,
Action update,
Action leave )
函数调用图:
这是这个函数的调用关系图:

◆ FindState()

State Game.StateMachine.FindState ( string name)
这是这个函数的调用关系图:

◆ TransitionTo()

void Game.StateMachine.TransitionTo ( string stateName)
函数调用图:
这是这个函数的调用关系图:

◆ Update()

void Game.StateMachine.Update ( )
这是这个函数的调用关系图:

类成员变量说明

◆ m_currentState

State Game.StateMachine.m_currentState

◆ m_previousState

State Game.StateMachine.m_previousState

◆ m_states

Dictionary<string, State> Game.StateMachine.m_states = []

属性说明

◆ CurrentState

string Game.StateMachine.CurrentState
get

◆ PreviousState

string Game.StateMachine.PreviousState
get

事件说明

◆ OnTransitionTo

Action<string> Game.StateMachine.OnTransitionTo

该类的文档由以下文件生成: