IEnumerator UpdateAllCharacters() { Mover.MoveCharacter(player, out charInTheWay, true, player.currDir, Physics.DefaultRaycastLayers); yield return(new WaitForFixedUpdate()); for (int i = TimeKeeper.CharactersCount - 1; i >= 0; i--) { TimeKeeper.NextTurn(i); yield return(new WaitForFixedUpdate()); } player.currDir = MovDir.NONE; charInTheWay = null; isKillingMove = false; }