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));