public override void OnActivate(int pinID)
        {
            string host = "http://dev01-app.alcww.gumi.sg/";

            if (pinID == 1)
            {
                Network.SetHost(host);
            }
            ((Behaviour)this).set_enabled(false);
            this.ActivateOutputLinks(2);
        }
        public override void OnSuccess(WWWResult www)
        {
            WebAPI.JSON_BodyResponse <FlowNode_CheckVersion.Json_VersionInfo> jsonObject = JSONParser.parseJSONObject <WebAPI.JSON_BodyResponse <FlowNode_CheckVersion.Json_VersionInfo> >(www.text);
            DebugUtility.Assert(jsonObject != null, "res == null");
            if (Network.IsError)
            {
                if (Network.ErrCode == Network.EErrCode.NoVersion)
                {
                    this.ActivateOutputLinks(13);
                    Network.RemoveAPI();
                    ((Behaviour)this).set_enabled(false);
                }
                else
                {
                    this.OnRetry();
                }
            }
            else if (jsonObject.body == null || jsonObject.body.host_ap == null)
            {
                this.OnRetry();
            }
            else
            {
                Network.SetHost(jsonObject.body.host_ap);
                Network.SetDLHost(jsonObject.body.host_dl);
                Network.SetSiteHost(jsonObject.body.host_site);
                Network.SetNewsHost(jsonObject.body.host_news);
                Network.RemoveAPI();
                if (jsonObject.body.tz != int.MaxValue)
                {
                    TimeManager.UTC2LOCAL = (long)jsonObject.body.tz;
                }
                if (!string.IsNullOrEmpty(jsonObject.body.assets))
                {
                    string assets = jsonObject.body.assets;
                    Network.AssetVersion         = assets;
                    AssetDownloader.DownloadURL  = jsonObject.body.host_dl + "/assets/" + assets + "/";
                    AssetDownloader.StreamingURL = jsonObject.body.host_dl + "/";
                }
                this.checkNewsDisplay(jsonObject);
                MonoSingleton <GameManager> .Instance.InitAlterHash(jsonObject.body.digest);

                this.ActivateOutputLinks(10);
                ((Behaviour)this).set_enabled(false);
            }
        }
 public override void OnActivate(int pinID)
 {
     if (pinID != 100 && pinID != 101)
     {
         return;
     }
     if (GameUtility.Config_UseDevServer.Value)
     {
         Network.SetHost(GameUtility.DevServerSetting);
     }
     else if (GameUtility.Config_UseStgServer.Value)
     {
         Network.SetHost("https://stg02-app.alcww.gumi.sg/");
     }
     else if (GameUtility.Config_UseAwsServer.Value)
     {
         Network.SetHost("http://app.alcww.gumi.sg/");
     }
     else
     {
         Network.ResetHost();
     }
     if (pinID == 100)
     {
         Network.Mode = Network.EConnectMode.Online;
         string    ver       = "1512";
         string    os        = "android";
         TextAsset textAsset = (TextAsset)Resources.Load <TextAsset>("networkver");
         if (Object.op_Inequality((Object)textAsset, (Object)null))
         {
             ver = textAsset.get_text();
         }
         Network.Version = ver;
         this.ExecRequest((WebAPI) new ReqCheckVersion(ver, os, new Network.ResponseCallback(((FlowNode_Network)this).ResponseCallback)));
         ((Behaviour)this).set_enabled(true);
     }
     else
     {
         Network.Mode = Network.EConnectMode.Offline;
         this.ActivateOutputLinks(11);
         ((Behaviour)this).set_enabled(false);
     }
 }