Beispiel #1
0
 public void Update()
 {
     if (_state == StateUpdateStageTask)
     {
         _frameSinceStageStart++;
         //Logger.Log("--------------STG Frame " + _frameSinceStageStart + " finish------------");
         if (_isInDialogMode)
         {
             UpdateDialogTask();
             if (_isInDialogMode)
             {
                 return;
             }
         }
         CommandManager.GetInstance().RunCommand(CommandConsts.UpdateDialog);
         if (!_isWaitingForSpellCard)
         {
             OnStageTaskUpdate();
         }
         if (_isCastingSpellCard)
         {
             if (!_curSpellCard.IsComplete())
             {
                 _curSpellCard.Update();
             }
             else
             {
                 _curSpellCard.OnFinish();
                 _isCastingSpellCard    = false;
                 _isWaitingForSpellCard = false;
             }
         }
     }
 }