Esempio n. 1
0
        private IEnumerator EndTurnCoroutine()
        {
            while (bordersTransform.position.y < 0.3)
            {
                bordersTransform.position += Vector3.up * Time.deltaTime * 0.1f;
                yield return(null);
            }

            tile.RefreshIUnitList();
            tile.ClearAttackers();
            stateController.CheckState();
            tileState.ResolveTurn();
            gameController.RefreshPlayersUI();
            addCoroutine(FinishEndTurnCoroutine());
        }