Esempio n. 1
0
        public NetworkModule()
        {
            NetworkInterfaceNames       = new ObservableImmutableList <NetworkInterfaceName>();
            CurrentNetworkInterfaceName = new NetworkInterfaceName();

            SetNetworkInterfaceName();
        }
Esempio n. 2
0
        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;
            }
        }
Esempio n. 3
0
 public void SetNetworkInterfaceName(NetworkInterfaceName networkInterfaceName)
 {
     this.networkInterfaceName = networkInterfaceName;
 }
Esempio n. 4
0
 public NetInterfaceClass(NetworkInterfaceName networkInterfaceName)
 {
     SetNetworkInterfaceName(networkInterfaceName);
 }