public void DrawSelection(ApartmentBuilderGrid grid, Color color) { var position = GetVector2Position(); Handles.color = color; WindowObjectDrawer.DrawCircle(position); WindowObjectDrawer.DrawLabel(position, position.RoundCoordsToInt().ToString()); }
public void DrawOnWall(Vector2 position) { var apartment = ApartmentsManager.Instance.CurrentApartment; var room = apartment.GetNearestRoom(position); if (room != null) { var projection = room.GetNearestPointOnContour(position); Handles.color = SkinManager.Instance.CurrentSkin.VertColor; WindowObjectDrawer.DrawCircle(projection.Value); } }
public void DrawOnWall(Vector2 position) { var apartment = ApartmentsManager.Instance.CurrentApartment; var room = apartment.GetNearestRoom(position); if (room != null) { Vector2 tangent; var projection = room.GetNearestPointOnContour(position, out tangent); Handles.color = this is Door ? SkinManager.Instance.CurrentSkin.DoorColor : SkinManager.Instance.CurrentSkin.WindowColor; WindowObjectDrawer.DrawCircle(projection.Value); WindowObjectDrawer.DrawLine(projection.Value - tangent * Width / 2, projection.Value + tangent * Width / 2); } }
public void Draw() { Handles.color = SkinManager.Instance.CurrentSkin.VertColor; WindowObjectDrawer.DrawCircle(_Position); }