Enemy object not moving fix

If you wrote the exact same code as Rick and the enemy is still not moving, change Vector2.MoveTowards() to Vector3.MoveTowards() since your var targetPosition is automatically set to Vector3 as type.
Hope this helps some.

Privacy & Terms