private void Update()
        {
            switch (BootLoader.BootStates)
            {
            case BootLoader.BootState.SUCCESS:
                if (Network.IsNoVersion)
                {
                    Network.ErrCode = Network.EErrCode.NoVersion;
                    ((Behaviour)this).set_enabled(false);
                    this.ActivateOutputLinks(13);
                    break;
                }
                if (FlowNode_GsccInit.SettingAssets(Network.GetEnvironment.Assets, Network.GetEnvironment.AssetsEx) && MonoSingleton <GameManager> .Instance.IsRelogin)
                {
                    MonoSingleton <GameManager> .Instance.IsRelogin = false;
                    this.ActivateOutputLinks(1001);
                }
                else
                {
                    this.Success();
                    this.ActivateOutputLinks(10);
                }
                ((Behaviour)this).set_enabled(false);
                break;

            case BootLoader.BootState.FAILED:
                ((Behaviour)this).set_enabled(false);
                this.ActivateOutputLinks(14);
                break;
            }
        }
 public override void OnSuccess(WWWResult www)
 {
     WebAPI.JSON_BodyResponse <FlowNode_CheckVersion2.Json_VersionInfo> jsonObject = JSONParser.parseJSONObject <WebAPI.JSON_BodyResponse <FlowNode_CheckVersion2.Json_VersionInfo> >(www.text);
     DebugUtility.Assert(jsonObject != null, "res == null");
     if (Network.IsError)
     {
         Network.EErrCode errCode = Network.ErrCode;
         this.OnRetry();
     }
     else if (jsonObject.body == null)
     {
         this.OnRetry();
     }
     else
     {
         Network.RemoveAPI();
         if (jsonObject.body.environments == null || jsonObject.body.environments.alchemist == null)
         {
             return;
         }
         if (FlowNode_GsccInit.SettingAssets(jsonObject.body.environments.alchemist.assets, jsonObject.body.environments.alchemist.assets_ex) && MonoSingleton <GameManager> .Instance.IsRelogin)
         {
             MonoSingleton <GameManager> .Instance.IsRelogin = false;
             this.ActivateOutputLinks(1001);
         }
         else
         {
             this.ActivateOutputLinks(10);
         }
         ((Behaviour)this).set_enabled(false);
     }
 }
Beispiel #3
0
 private void Success()
 {
     FlowNode_GsccInit.SettingAssets(Network.GetEnvironment.Assets, Network.GetEnvironment.AssetsEx);
     NewsUtility.setNewsState(Network.Pub, Network.PubU, MonoSingleton <GameManager> .Instance.Player.IsFirstLogin);
     MonoSingleton <GameManager> .Instance.InitAlterHash(Network.Digest);
 }