static int SendConnect(IntPtr L) { int count = LuaDLL.lua_gettop(L); if (count == 1) { NetworkManager obj = LuaScriptMgr.GetUnityObject <NetworkManager>(L, 1); obj.SendConnect(); return(0); } else if (count == 3) { NetworkManager obj = LuaScriptMgr.GetUnityObject <NetworkManager>(L, 1); string arg0 = LuaScriptMgr.GetLuaString(L, 2); int arg1 = (int)LuaScriptMgr.GetNumber(L, 3); obj.SendConnect(arg0, arg1); return(0); } else { LuaDLL.luaL_error(L, "invalid arguments to method: NetworkManager.SendConnect"); } return(0); }
static int SendConnect(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 1); NetworkManager obj = (NetworkManager)LuaScriptMgr.GetUnityObjectSelf(L, 1, "NetworkManager"); obj.SendConnect(); return(0); }
static int SendConnect(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 1); NetworkManager obj = LuaScriptMgr.GetNetObject <NetworkManager>(L, 1); obj.SendConnect(); return(0); }
static int SendConnect(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); NetworkManager obj = (NetworkManager)ToLua.CheckObject <NetworkManager>(L, 1); obj.SendConnect(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int SendConnect(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); NetworkManager obj = (NetworkManager)ToLua.CheckObject(L, 1, typeof(NetworkManager)); string arg0 = ToLua.CheckString(L, 2); int arg1 = (int)LuaDLL.luaL_checknumber(L, 3); obj.SendConnect(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
private static int SendConnect(IntPtr L) { int result; try { ToLua.CheckArgsCount(L, 1); NetworkManager networkManager = (NetworkManager)ToLua.CheckObject(L, 1, typeof(NetworkManager)); networkManager.SendConnect(); result = 0; } catch (Exception e) { result = LuaDLL.toluaL_exception(L, e, null); } return(result); }