Ejemplo n.º 1
0
        bool BuildingTileEdition()
        {
            bool clicked = false;

            if (Target.tileInstances == null)
            {
                return(false);
            }

            foreach (BuildingTile tile in Target.tileInstances)
            {
                BuildingTileEditor.DrawGizmos(tile);
            }

            return(clicked);
        }
        public static void DrawGizmos(BuildingCell cell)
        {
            hasModifiedCollection = false;
            BuildingTileEditor.DrawGizmos(cell.tile);
            if (DrawButton(cell.Coord, cell.MatrixBuilding))
            {
                hasModifiedCollection = true;
                return;
            }

            foreach (CardinalPoint point in Util.ListCardinalPoints())
            {
                if (DrawButton(cell.Coord + Coord.Cast(Util.UnitVector(point)),
                               cell.MatrixBuilding))
                {
                    hasModifiedCollection = true;
                    return;
                }
            }
        }