Mecanim shooting

I have three animations. All i do in one model with blender.

Walking
Take gun up
Shooting

How i can now put that my mecanim AI player walking walking walking and when it see me it takes gun up and then shoot? I try found in youtube some tutorial but not found. Only those if player itself press something it do something.

It’s the same way! Put a script to your AI gameObject. Check if the Player is in range. If he is in range, play only the “attack” animation or set a time variable to play these animation once and switch to the walk animation again.
All scripts you put to a player, you can put to a gameobject. (Without the players control).
Split your animations in the properties applied to you model importet in unity(Animations tab)