コード例 #1
0
 private void OnTileMouseEnterOnBoard(TileDisplay tile)
 {
     this.hoveredTile = tile;
     if (this.boardCreator.CheckTileInPoints(tile, points))
     {
         CursorController.SetPointer();
         tile.HighlightOn();
     }
     else
     {
         CursorController.SetPointerForbidden();
     }
 }
コード例 #2
0
    private void OnTileMouseEnterOnBoard(TileDisplay tile)
    {
        this.hoveredTile = tile;
        this.boardCreator.RemoveAllBlinks();

        Point fromPosition = this.boardCreator.GetTilePosition(tile);

        this.ShowRangeAttackReach(this.selectedUnit, fromPosition);

        var points       = this.boardCreator.ShowPathReach(this.selectedUnit);
        var tilePosition = this.boardCreator.GetTilePosition(tile);

        if (this.boardCreator.CheckTileInPoints(tile, points))
        {
            tile.HighlightOn();
            CursorController.SetPointer();
        }
        else
        {
            CursorController.SetPointerForbidden();
        }
    }