Ejemplo n.º 1
0
 void ThirdStep()
 {
     if (thirdPhase && !InMove && thirdPhaseList.Count > 0)
     {
         InPause = false;
         Transform currentSel = thirdPhaseList[0] as Transform;
         if (!currentSel.GetComponent <CharacterProperty>().TurnFinished)
         {
             currentInMove = currentSel;
             ShowSelection(currentInMove, true);
             UICommands thirdCmd = decisions.GetThirdCommand(currentSel);
             print("3rd: " + currentSel + ": " + thirdCmd);
             InMove = ExcuteCommand(thirdCmd, currentSel);
             if (thirdCmd == UICommands.Defense)
             {
                 InMove = false;
             }
         }
         thirdPhaseList.RemoveAt(0);
         if (thirdPhaseList.Count == 0)
         {
             thirdPhaseList.Clear();
             thirdPhase = false;
         }
     }
     else if (thirdPhaseList.Count == 0)
     {
         thirdPhaseList.Clear();
         thirdPhase = false;
     }
 }