LuaClient.GetMainState C# (CSharp) Method

GetMainState() public static method

public static GetMainState ( ) : LuaState
return LuaState
    public static LuaState GetMainState()
    {
        return Instance.luaState;
    }

Usage Example

Example #1
0
        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;
                }
            }
        }
All Usage Examples Of LuaClient::GetMainState