void Update()
{
//cmd.Update();
for (int i = 0; i < _orderedUpdateableList.Count; ++i)
{
_orderedUpdateableList[i].Update();
}
Messenger.Update(); // msg process
GlobalTimer.Instance.Update(); // timer process
UpdateEvent();
if (Input.GetKeyDown(KeyCode.Escape))
{
if (hasLoadLua)
{
LuaFunction func = LuaClient.GetMainState().GetFunction("exit_ui.Show");
func.BeginPCall();
func.PCall();
func.EndPCall();
func = null;
}
}
}