diff --git a/RunningLateGame/Assets/Scripts/CarController.cs b/RunningLateGame/Assets/Scripts/CarController.cs
index d3efbff..7c5bc26 100644
--- a/RunningLateGame/Assets/Scripts/CarController.cs
+++ b/RunningLateGame/Assets/Scripts/CarController.cs
@@ -6,6 +6,7 @@
using System;
using System.Collections.Generic;
+using System.Linq;
using UnityEngine;
///
@@ -102,9 +103,8 @@ public void Brake()
///
public void Steering()
{
- foreach (var wheel in wheels)
- if (wheel.axel == Axel.Front)
- wheel.wheelCollider.steerAngle = _currentTurn;
+ foreach (var wheel in wheels.Where(wheel => wheel.axel == Axel.Front))
+ wheel.wheelCollider.steerAngle = _currentTurn;
}
///