static int set_networkManager(IntPtr L) { try { NetFramework.NetworkManager arg0 = (NetFramework.NetworkManager)ToLua.CheckObject <NetFramework.NetworkManager>(L, 2); TestStart.networkManager = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
void Start() { networkManager = new NetFramework.NetworkManager(); luaClient = new GameObject("LuaClient").AddComponent <LuaClient>(); }