示例#1
0
 private static void RetryEvent(bool retry)
 {
     if (retry)
     {
         Network.ResetError();
     }
     else
     {
         Network.RemoveAPI();
         Network.ResetError();
         FlowNode_LoadScene.LoadBootScene();
     }
 }
示例#2
0
        public override void OnActivate(int pinID)
        {
            if (pinID != 100 || ((Behaviour)this).get_enabled())
            {
                return;
            }
            string str = (string)null;

            switch (this.SceneType)
            {
            case FlowNode_LoadScene.SceneTypes.HomeTown:
                SectionParam homeWorld = HomeUnitController.GetHomeWorld();
                if (homeWorld != null)
                {
                    str = homeWorld.home;
                    break;
                }
                break;

            case FlowNode_LoadScene.SceneTypes.BootScene:
                FlowNode_LoadScene.LoadBootScene();
                this.ActivateOutputLinks(21);
                return;

            default:
                str = this.SceneName;
                break;
            }
            if (string.IsNullOrEmpty(str))
            {
                DebugUtility.LogError("No Scene to load");
            }
            else
            {
                ((Behaviour)this).set_enabled(true);
                CriticalSection.Enter(CriticalSections.SceneChange);
                this.ActivateOutputLinks(20);
                DebugUtility.Log("LoadScene [" + str + "]");
                if (AssetManager.IsAssetBundle(str))
                {
                    this.StartCoroutine(this.PreLoadSceneAsync(str));
                }
                else
                {
                    this.StartSceneLoad(str);
                }
            }
        }