Example #1
0
 void SecondStep()
 {
     if (secondPhase && !InMove && secondPhaseList.Count > 0)
     {
         InPause = false;
         Transform currentSel = secondPhaseList[0] as Transform;
         if (!currentSel.GetComponent <CharacterProperty>().TurnFinished)
         {
             currentInMove = currentSel;
             ShowSelection(currentInMove, true);
             UICommands secondCmd = decisions.GetSecondCommand(currentSel);
             print("2nd: " + currentSel + ": " + secondCmd);
             InMove = ExcuteCommand(secondCmd, currentSel);
             if (secondCmd == UICommands.Defense)
             {
                 InPause = true;
             }
         }
         secondPhaseList.RemoveAt(0);
         if (secondPhaseList.Count == 0)
         {
             secondPhaseList.Clear();
             secondPhase    = false;
             thirdPhaseList = InitThirdPhase();
         }
     }
     else if (secondPhaseList.Count == 0)
     {
         secondPhaseList.Clear();
         secondPhase = false;
     }
 }