Simple AI behaviour: move towards the player (C#).

I’m trying to find C# tutorials for basic AI without much luck. I basically need two very simple behaviours: one for an enemy that starts moving towards the player with the intention of crashing into him as soon as the player gets within a certain radius and he “notices” him.

The other is an enemy that does the same, but instead of crashing into the player it would stop a short distance away and shoot projectiles at the player and try to maintain that distance (so if the player moves towards the enemy, the enemy would back away).

I know I need to create special scripts to stick on the AI and place it on the update function: to see if the player is at a certain distance to the enemy or closer and then move towards the player. For the other player to shoot a projectile prefab towards the player every x seconds etc.

Are there any Unity/C# tutorials that touch that area?

if you go onto youtube and look up BergZergArcade the first few tutorials will show you how to do that exactly

Sigh As soon as I get one for My AI Personality Generator for my Robot I will let you know. did you know there are lots of Text based Personality like Synthia.