You'll need a couple things.
1. An efficient way to detect proximity. [Physics.OverlapSphere][1] or just colliders set as triggers are good for this. This is so you can say, "Enemy is close to player, do something now".
2. You'll need to build a function (that probably spawns a [coroutine][2]) that allows you to say in 1 call MoveTo(position).
3. All your animations and things should be driven from these "events". Example: by default play idle, when the event "Player comes close" happens, you play your "alarmed and smells brains" animation then when you start walking towards the player, you play the walk animation.
You don't really need an AI tutorial to write AI, it's actually not very complicated. You do need to have a good handle on scripting in Unity, so following any of the getting started tutorials is a good way to start.
[1]: http://docs.unity3d.com/Documentation/ScriptReference/Physics.OverlapSphere.html
[2]: http://docs.unity3d.com/Documentation/ScriptReference/index.Coroutines_26_Yield.html
↧