Example #1
0
        public IEnumerator NextTurn()
        {
            ActionOrder actionOrder = ActionOrder.getInstance();

            yield return(new WaitWhile(() => actionOrder.QtyOrder > actionOrder.ActualOrder));

            if (players != null && players.Count > 0)
            {
                winningConditions.checkCondition();
                foreach (Player player in players)
                {
                    player.status.resetActionPoints();
                    player.turnFinished = true;
                }
            }
            next();
        }
Example #2
0
        public void next()
        {
            ActionOrder.getInstance().resetActionOrder();
            String name = moves[0];

            this.moves.Remove(name);
            this.moves.Add(name);
            Debug.Log("alahuakbar");
            if (winningConditions.checkVictory())
            {
                return;
            }
            String objectName = moves[0];

            if (objectName == "Enemy")
            {
                enemyAction();
            }
        }