Esempio n. 1
0
 //Updates a mark on the tile, marking it as Good if it's empty, as Bad otherwise
 public void MarkMovementRangeOnTile(BoardTile tile)
 {
     if (tile != null) //If pos is not outside of the board, hence theres a tile
     {
         if (tile.IsEmpty()) tile.SetPermanentMarkType(BoardMark.MarkType.Good);
         else tile.SetPermanentMarkType(BoardMark.MarkType.Bad);
     }
 }
Esempio n. 2
0
    public void OnTileSelected(BoardTile tile)
    {
        if(!tile.IsEmpty())
        {
            GoToMainActionMenu(); //Change the menu to Move, Attack, Defense, etc

            Bug selectedBug = tile.GetBug();
            PopulateStatsTexts(selectedBug); //Populate the texts on the StatsPanel
        }
        else
        {
            HideAllButtons();
        }
    }