Exemplo n.º 1
0
 public void AddBuildingPiece(Spot spot)
 {
     if (spot != null)
     {
         if (editorParams.TileBuildingLegit(spot))
         {
             if (editorParams.samplePiece != null)
             {
                 pieceMap[spot.x, spot.y] = editorParams.samplePiece.pieceId;
             }
         }
     }
 }
Exemplo n.º 2
0
        public void UpdateHighlight(Spot spot)
        {
            highlight.visible = false;

            if (spot != null)
            {
                if (editorParams.TileBuildingLegit(spot))
                {
                    highlight.SetNewSpot(spot);
                    highlight.visible = true;
                }

                if (editorParams.TileShadowLegit(spot))
                {
                    highlight.SetNewSpot(spot);
                    highlight.visible = true;
                }
            }
        }