Esempio n. 1
0
 public void BeginAction(TurnAction action)
 {
     onCancelActions.Add(CancelCurrentAction);
     onConfirm     = action.Execute;
     currentAction = action;
     currentAction.Begin();
 }
Esempio n. 2
0
        public void CancelCurrentAction()
        {
            doingAction = false;
            currentAction.Cancel();
            currentAction = null;

            UIManager._instance.FocusMenuPanel(true);
            UIManager._instance.SetButtonsActive(new bool[] { true, !currentCharacter.TurnActionsPreformed[0], !currentCharacter.TurnActionsPreformed[0], !currentCharacter.TurnActionsPreformed[1], false, false, currentCharacters.Count > 1, currentCharacters.Count > 1, true, true });
        }
Esempio n. 3
0
        public void CancelAll()
        {
            foreach (UnityEngine.Events.UnityAction action in onCancelActions)
            {
                if (action != null)
                {
                    action.Invoke();
                }
            }

            onCancelActions.Clear();
            currentAction = null;
            UIManager._instance.SetButtonsActive(new bool[] { true, !currentCharacter.TurnActionsPreformed[0], !currentCharacter.TurnActionsPreformed[0], !currentCharacter.TurnActionsPreformed[1], false, false, currentCharacters.Count > 1, currentCharacters.Count > 1, true, true });
        }
Esempio n. 4
0
 public virtual void Resume()
 {
     secondary = null;
 }
Esempio n. 5
0
 public ViewAction(TurnAction lastAction, List <GridPosition> activeRange)
 {
     this.lastAction  = lastAction;
     this.activeRange = activeRange;
 }