Merged Wall and Ground Enemies into One

This commit is contained in:
2022-02-22 00:47:26 +03:00
parent cbcb05b845
commit 6e7a90fd86
12 changed files with 32 additions and 246 deletions

View File

@@ -31,7 +31,7 @@ namespace AI
protected virtual void Awake()
{
movement = gameObject.GetComponent<EnemyMovement>();
movement = gameObject.AddComponent<EnemyMovement>();
leftWallChecker = GetCollisionCheckerOnChild("Collision Checkers/Left Wall");
rightWallChecker = GetCollisionCheckerOnChild("Collision Checkers/Right Wall");
leftGroundChecker = GetCollisionCheckerOnChild("Collision Checkers/Left Ground");