public void BeginAction(TurnAction action) { onCancelActions.Add(CancelCurrentAction); onConfirm = action.Execute; currentAction = action; currentAction.Begin(); }
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 }); }
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 }); }
public virtual void Resume() { secondary = null; }
public ViewAction(TurnAction lastAction, List <GridPosition> activeRange) { this.lastAction = lastAction; this.activeRange = activeRange; }