Ejemplo n.º 1
0
        public List <Outcome> GenerateTurn(int player)
        {
            List <Vector2> vectorList = new List <Vector2>();

            if (tutorialManager.activeSection == 5)
            {
                IUnitController unitBeingMoved = selectionManager.UnitsByPlayer[2][0];
                vectorList.Add(new Vector2(-2, 0));
                vectorList.Add(new Vector2(-1, -1));
                vectorList.Add(new Vector2(0, -1));
                List <Outcome> outcomeList = OutcomesFromVectors(vectorList, unitBeingMoved);
                selectionManager.AIExecuteSubMoves(outcomeList, unitBeingMoved);
                return(outcomeList);
            }
            else
            {
                Debug.Log("Ended turn at wrong time--no ai move exists for this part of the tutorial");
            }
            return(new List <Outcome>());
        }