protected void QueueDecisionToRun()
 {
     if (combatUI.IsCombatUIActive())
     {
         combatUI.QueueDecision(myDecision);
     }
     else
     {
         if (myDecision != null)
         {
             myDecision.ProcessDecision();
         }
     }
 }
Esempio n. 2
0
 public void ToggleCombatMode()
 {
     if (combatUIactive)
     {
         DeselectAbility();
         abilitiesUI.HideComponents();
         World.UnpauseGame();
         combatUIactive = false;
         if (pendingDecision != null)
         {
             pendingDecision.ProcessDecision();
         }
         SetCursorDefault();
     }
     else
     {
         World.PauseGame();
         abilitiesUI.DisplayComponents();
         underAttackUI.DisplayComponents();
         playerVitalsUI.DisplayComponents();
         combatUIactive  = true;
         pendingDecision = null;
     }
 }