VR Development Framework
v 1.0.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
static void AVR.Net.AVR_BasicNetworkMenu.StatusLabels ( )
inlinestaticprivate

Definition at line 34 of file AVR_BasicNetworkMenu.cs.

35  {
36  var mode = NetworkManager.Singleton.IsHost ?
37  "Host" : NetworkManager.Singleton.IsServer ? "Server" : "Client";
38 
39  GUILayout.Label("Transport: " +
40  NetworkManager.Singleton.NetworkConfig.NetworkTransport.GetType().Name);
41  GUILayout.Label("Mode: " + mode);
42 
43  if(NetworkManager.Singleton.IsServer)
44  {
45  if (GUILayout.Button("Shutdown Server")) NetworkManager.Singleton.Shutdown();
46  }
47  else if (NetworkManager.Singleton.IsHost)
48  {
49  if (GUILayout.Button("Stop Host")) NetworkManager.Singleton.Shutdown();
50  }
51  else if (NetworkManager.Singleton.IsClient)
52  {
53  if (GUILayout.Button("Disconnect")) NetworkManager.Singleton.Shutdown();
54  }
55  }