Пример #1
0
    void NextTurn()
    {
        //Need to check if it's the player or the ai
        //To go Next
        //Debug.Log("Finished Turn");
        WaitingForTargetAttack = false;
        WaitingForTargetMove   = false;
        Range();
        MidGameUI.transform.Find("NewRound").GetComponent <MoveText>().StartIt();
        index++;
        if (index > TurnRotation.Count - 1)
        {
            index = 0;
        }
        currentTurn = TurnRotation[index];
        currentTurn.ResetTurn();
        aI.ChangeTurn = currentTurn;

        camera.GetTarget(currentTurn.culprit.Object);
    }
Пример #2
0
    void Start()
    {
        isOver         = true;
        Arrow          = GameObject.Find("PointArrow").GetComponent <ArrowAnimation>();
        ListCharacters = new List <Character>();
        TurnRotation   = new List <Turn>();
        var numPlayers = (int)Random.Range(2, 5);
        var numEnemies = (int)Random.Range(4, 9);

        board            = new Board(BoardSize, PlayerCount, EnemyCount);
        characterPerTeam = new int[2];
        PrintBoard();
        FillBoard();
        TurnCreation();
        aI            = new AI(board, this);
        aI.ChangeTurn = TurnRotation[index];
        camera        = Camera.main.GetComponent <StartMovement>();
        Reset();
        isOver = false;
        camera.GetTarget(currentTurn.culprit.Object);
        camera.GameStart();
    }