Ejemplo n.º 1
0
 private void DoChangeToNewState()
 {
     this.CurrentGameState      = this.NextGameState;
     this.NextGameState         = "Max";
     this.m_bResourceLoaded     = false;
     this.m_bScenePrepared      = true;
     this.m_oCurrentClientState = this.m_dicClientStates[this.CurrentGameState];
     this.m_oCurrentClientState.OnEnter();
     ResourceManager.singleton.SetAllLoadFinishedEventHandler(delegate(bool o)
     {
         this.m_bResourceLoaded = true;
         this.OnPartLoaded();
     });
 }
Ejemplo n.º 2
0
 private void DoChangeToNewState()
 {
     this.CurrentGameState  = this.NextGameState;
     this.NextGameState     = "Max";
     this.m_bResourceLoaded = false;
     this.m_bScenePrepared  = true;
     if (this.CurrentGameState == "GameMainState")
     {
         this.m_bScenePrepared = false;
         SceneManager.singleton.OnScenePerparedAction += () =>
         {
             this.m_bScenePrepared = true;
             this.OnPartLoaded();
         };
     }
     this.m_oCurrentClientState = this.m_dicClientStates[this.CurrentGameState];
     this.m_oCurrentClientState.OnEnter();
     WWWResourceManager.Instance.SetAllLoadFinishedEventHandler(delegate(bool o)
     {
         this.m_bResourceLoaded = true;
         this.OnPartLoaded();
     });
 }