protected override void OnDrawScrollableWindow() { GUILayout.Label("<b>Network Information</b>"); GUILayout.BeginVertical("box"); { DrawItem("Network Channel Count", m_NetworkComponent.NetworkChannelCount.ToString()); } GUILayout.EndVertical(); INetworkChannel[] networkChannels = m_NetworkComponent.GetAllNetworkChannels(); for (int i = 0; i < networkChannels.Length; i++) { DrawNetworkChannel(networkChannels[i]); } }
static int GetAllNetworkChannels(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); UnityGameFramework.Runtime.NetworkComponent obj = (UnityGameFramework.Runtime.NetworkComponent)ToLua.CheckObject(L, 1, typeof(UnityGameFramework.Runtime.NetworkComponent)); GameFramework.Network.INetworkChannel[] o = obj.GetAllNetworkChannels(); ToLua.Push(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }