// Removes all currently queue'd actions and sets a default public void SetAction(CombatAction action) { foreach(CombatAction queuedAction in actions) { Destroy(queuedAction); } actions.Clear(); actions.Enqueue(action); }
// Adds an action to the end of the queue public void AddAction(CombatAction action) { actions.Enqueue(action); }