예제 #1
0
    static int GetDlgObj(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        LuaUIManager obj  = (LuaUIManager)LuaScriptMgr.GetNetObjectSelf(L, 1, "LuaUIManager");
        string       arg0 = LuaScriptMgr.GetLuaString(L, 2);
        GameObject   o    = obj.GetDlgObj(arg0);

        LuaScriptMgr.Push(L, o);
        return(1);
    }
    private static int GetDlgObj(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        LuaUIManager luaUIManager = (LuaUIManager)LuaScriptMgr.GetNetObjectSelf(L, 1, "LuaUIManager");
        string       luaString    = LuaScriptMgr.GetLuaString(L, 2);
        GameObject   dlgObj       = luaUIManager.GetDlgObj(luaString);

        LuaScriptMgr.Push(L, dlgObj);
        return(1);
    }