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;
                }
            }
        }
Пример #2
0
 public static Coord GetCoord(CardinalPoint orientation, Transform reference)
 {
     return(Coord.FromWorld(reference.localPosition, FloorTile.tileSize) +
            Coord.Cast(Util.UnitVector(orientation)));
 }