Esempio n. 1
0
        // 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);
        }
Esempio n. 2
0
 // Adds an action to the end of the queue
 public void AddAction(CombatAction action) {
     actions.Enqueue(action);
 }