public NetworkModule() { NetworkInterfaceNames = new ObservableImmutableList <NetworkInterfaceName>(); CurrentNetworkInterfaceName = new NetworkInterfaceName(); SetNetworkInterfaceName(); }
public PlatformIntegration() { // Target Device Network Interfaces. This is not known until compile time: #if UNITY_ANDROID NetworkInterfaceName = new AndroidNetworkInterfaceName(); #elif UNITY_IOS NetworkInterfaceName networkInterfaceName = new IOSNetworkInterfaceName(); #else Debug.Log("Unknown or unsupported platform. Please create WiFi and Cellular interface name Object for your platform"); #endif // Editor or Player network management (overrides target device platform): switch (Application.platform) { case RuntimePlatform.OSXPlayer: case RuntimePlatform.OSXEditor: NetworkInterfaceName = new MacNetworkInterfaceName(); break; } }
public void SetNetworkInterfaceName(NetworkInterfaceName networkInterfaceName) { this.networkInterfaceName = networkInterfaceName; }
public NetInterfaceClass(NetworkInterfaceName networkInterfaceName) { SetNetworkInterfaceName(networkInterfaceName); }