예제 #1
0
        public bool MoveNext()
        {
            uint num = (uint)this.$PC;

            this.$PC = -1;
            switch (num)
            {
            case 0:
                this.$current = new WaitForSeconds(0.25f);
                this.$PC      = 1;
                goto Label_00D6;

            case 1:
                if (TurnTimer.Get() != null)
                {
                    TurnTimer.Get().OnEndTurnRequested();
                }
                EndTurnButton.Get().m_EndTurnButtonMesh.GetComponent <Animation>()["ENDTURN_YOUR_TIMER_DONE"].speed = 0.7f;
                EndTurnButton.Get().OnTurnTimerEnded(true);
                this.$current = new WaitForSeconds(1f);
                this.$PC      = 2;
                goto Label_00D6;

            case 2:
                EndTurnButton.Get().m_EndTurnButtonMesh.GetComponent <Animation>()["ENDTURN_YOUR_TIMER_DONE"].speed = 1f;
                break;

            default:
                break;
                this.$PC = -1;
                break;
            }
            return(false);

Label_00D6:
            return(true);
        }
 private bool CheckCriticalAssetLoads()
 {
     if (!this.m_criticalAssetsLoaded)
     {
         if (Board.Get() == null)
         {
             return(false);
         }
         if (BoardCameras.Get() == null)
         {
             return(false);
         }
         if (BoardStandardGame.Get() == null)
         {
             return(false);
         }
         if (GameMgr.Get().IsTutorial() && (BoardTutorial.Get() == null))
         {
             return(false);
         }
         if (MulliganManager.Get() == null)
         {
             return(false);
         }
         if (TurnStartManager.Get() == null)
         {
             return(false);
         }
         if (TargetReticleManager.Get() == null)
         {
             return(false);
         }
         if (GameplayErrorManager.Get() == null)
         {
             return(false);
         }
         if (EndTurnButton.Get() == null)
         {
             return(false);
         }
         if (BigCard.Get() == null)
         {
             return(false);
         }
         if (CardTypeBanner.Get() == null)
         {
             return(false);
         }
         if (TurnTimer.Get() == null)
         {
             return(false);
         }
         if (CardColorSwitcher.Get() == null)
         {
             return(false);
         }
         if (RemoteActionHandler.Get() == null)
         {
             return(false);
         }
         if (ChoiceCardMgr.Get() == null)
         {
             return(false);
         }
         if (InputManager.Get() == null)
         {
             return(false);
         }
         this.m_criticalAssetsLoaded = true;
         this.ProcessQueuedPowerHistory();
     }
     return(true);
 }