Typo Fixed
This commit is contained in:
parent
94709d996e
commit
51578e4130
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in New Issue