I have written these two enemy scripts but the enemy doesn't move? (2d)

alt text

@bobrovapaula
It looks like you’re moving the GameObject that you’re attaching your EnemyAI script to, and not the actual enemy (Check the transform.translate line in Update on the image in the comments.) just putting transform in there is moving the EnemyAI GO, not the Enemy.