исправл

This commit is contained in:
mara-1 2024-03-12 19:04:41 +04:00
commit d6b298a36c
3 changed files with 51 additions and 22 deletions

View File

@ -0,0 +1,29 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ProjectBulldozer;
public enum DirectionType1
{
/// <summary>
/// Вверх
/// </summary>
Up = 1,
/// <summary>
/// Вниз
/// </summary>
Down = 2,
/// <summary>
/// Влево
/// </summary>
Left = 3,
/// <summary>
/// Вправо
/// </summary>
Right = 4
}
//сделано

View File

@ -73,19 +73,19 @@ namespace ProjectBulldozer
{
case "buttonUp":
result =
_drawningBulldozer.MoveTransport(DirectionType1.Up);
_drawningBulldozer.MoveTransport(DirectionType.Up);
break;
case "buttonDown":
result =
_drawningBulldozer.MoveTransport(DirectionType1.Down);
_drawningBulldozer.MoveTransport(DirectionType.Down);
break;
case "buttonLeft":
result =
_drawningBulldozer.MoveTransport(DirectionType1.Left);
_drawningBulldozer.MoveTransport(DirectionType.Left);
break;
case "buttonRight":
result =
_drawningBulldozer.MoveTransport(DirectionType1.Right);
_drawningBulldozer.MoveTransport(DirectionType.Right);
break;
}
if (result)