public ICommand GetCurrentCommand() { ActionBase randomAction = actions[Random.Range(0, actions.Length)]; setIconBehaviour.SetIcon(randomAction.Icon); return(randomAction.Command); }
public void ChangeAction() { index = (index + 1) % actions.Length; currentAction = actions[index]; setIconBehaviour.SetIcon(currentAction.Icon); actionPointsController.Notify(); }