コード例 #1
0
ファイル: BoardMarkManager.cs プロジェクト: sephirot47/Bugz
 //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);
     }
 }
コード例 #2
0
ファイル: BoardCanvasManager.cs プロジェクト: sephirot47/Bugz
    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();
        }
    }