From 51578e4130a241cc262d7a034626e1f63918583d Mon Sep 17 00:00:00 2001 From: Syntriax Date: Mon, 21 Feb 2022 18:47:01 +0300 Subject: [PATCH] Typo Fixed --- Assets/Scripts/AI/BasicPatrollingEnemyAI.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Scripts/AI/BasicPatrollingEnemyAI.cs b/Assets/Scripts/AI/BasicPatrollingEnemyAI.cs index ffbb6ec..be9c228 100644 --- a/Assets/Scripts/AI/BasicPatrollingEnemyAI.cs +++ b/Assets/Scripts/AI/BasicPatrollingEnemyAI.cs @@ -18,7 +18,7 @@ namespace AI // If moving Right, and either there's no more ground to move into or there is a wall at the Right side of the enemy OR // If moving Left, and either there's no more ground to move into or there is a wall at the Left side of the enemy // We should change directions - private bool ShouldChangeDirection + protected bool ShouldChangeDirection => (isMovingRight && (rightWallChecker.IsCollided || !rightGroundChecker.IsCollided)) || (!isMovingRight && (leftWallChecker.IsCollided || !leftGroundChecker.IsCollided));