private static int DestroyPanel(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 1); string luaString = LuaScriptMgr.GetLuaString(L, 1); CSharpInterface.DestroyPanel(luaString); return(0); }
public static int DestroyPanel_s(IntPtr l) { int result; try { string panelName; LuaObject.checkType(l, 1, out panelName); CSharpInterface.DestroyPanel(panelName); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }