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); } }