Accessed none trying to read property

This is my EnemyAI class. I’ve created it manually.