예제 #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();
 }