Exemple #1
0
    public void NextTurn()
    {
        // goes to next player
        currPlayerIndex = (currPlayerIndex + 1) % players.Count;

        // set new current player
        GameData.SetCurrPlayer(players[currPlayerIndex]);

        // hide select move screen
        GameGUI.HideSelectMoveScreen();

        // show die roll screen
        RollDie(GameData.Mode.NormalRoll);
    }
Exemple #2
0
    public void DestroyLegalMoves()
    {
        // erases all lines and outlines highlighting moves
        // hide the select move GUI
        GameGUI.HideSelectMoveScreen();

        // destroy the lines
        while (lines.Count > 0)
        {
            Destroy(lines.Pop().gameObject);
        }

        // destroy the outlines
        while (destTiles.Count > 0)
        {
            destTiles.Pop().GetComponent <Outline>().enabled = false;
        }
    }