public void UseAction(int index) { index = index % (actions.Length); usedAction = actions[index]; usedAction.Performer = transform; usedAction.Target = target.transform; usedAction.ActivateAction(); string actionUpdate = usedAction.Performer.GetComponent <IDamageable>().GetName() + " used " + usedAction.ActionName + " on " + usedAction.Target.GetComponent <IDamageable>().GetName(); PlaningUI.ActionUsed(actionUpdate); }