示例#1
0
        public override void OnRegister()
        {
            var configs = JsonFS.Instance.File2Object <List <IPAddress> >("ServerAddress");

#if UNITY_DEVELOPMENT
            foreach (var ipAddress in configs)
            {
                if (ipAddress.address == "development")
                {
                    ServerAddress = ipAddress.ipAdress;
                }
            }
#endif
#if UNITY_PRODUCT
            foreach (var ipAddress in configs)
            {
                if (ipAddress.address == "product")
                {
                    ServerAddress = ipAddress.ipAdress;
                }
            }
            UnityEngine.Debug.Log("UNITY_PRODUCT");
#endif
        }
示例#2
0
 public ServerAddressProxy(ServerIPAddress address) : base(NAME, address)
 {
     ServerAddress = address;
 }
示例#3
0
 public void SetIPAddress(string host, string port)
 {
     ServerAddress = new ServerIPAddress(host, port);
 }
示例#4
0
 public ServerAddressProxy() : base(NAME)
 {
     ServerAddress = new ServerIPAddress();
 }