public TurnQueue(CharacterQueue parent, List <Character> characters) { parent_ = parent; // sort characters by increasing of initiative, so current character is contained in the last element of list characters.Sort((ch1, ch2) => ch1.currentStats.initiative.CompareTo(ch2.currentStats.initiative)); normalTurn_ = characters; waiting_ = new List <Character>(); }
void Awake() { characterQueue_ = GetComponentInChildren <CharacterQueue>(); characterQueue_.AddObserver(this); }
void Awake() { characterQueue_ = GetComponentInChildren<CharacterQueue>(); characterQueue_.AddObserver(this); }