From 7b6f4285e5a304073060446fb7cf01b5efac504c Mon Sep 17 00:00:00 2001 From: 1SooNoo1 Date: Tue, 10 Oct 2023 23:07:56 +0400 Subject: [PATCH] Lab_2_Kryukov_AI_Excavator --- ProjectExcavator/ProjectExcavator/DrawningExcavator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ProjectExcavator/ProjectExcavator/DrawningExcavator.cs b/ProjectExcavator/ProjectExcavator/DrawningExcavator.cs index 40e8ec3..d2b4947 100644 --- a/ProjectExcavator/ProjectExcavator/DrawningExcavator.cs +++ b/ProjectExcavator/ProjectExcavator/DrawningExcavator.cs @@ -172,7 +172,7 @@ namespace ProjectExcavator.DrawningObjects } Pen pen = new(Color.Black); //корпус - Brush bodyBrush = new SolidBrush(Color.Red); + Brush bodyBrush = new SolidBrush(EntityExcavator.BodyColor); g.FillRectangle(bodyBrush, _startPosX + 20, _startPosY + 60, 130, 20); g.FillRectangle(bodyBrush, _startPosX + 100, _startPosY + 20, 30, 40); g.FillRectangle(bodyBrush, _startPosX + 30, _startPosY + 40, 10, 20);