Touch button to transition through Animations

Purpose: Press attack button to transition from Idle animation to Attack animation.

I am not yet competent enough in the Unity language to research efficiently quite yet. If anyone could point me in the right direction by providing keywords I will need to know will be much appreciated. I am currently aimlessly watching tutorials and researching questions but there is so much information to narrow down.

Picture of unity project on Android Phone whilst in Idle state:

Picture of Animator in Unity:

@birns92

on the left hand side of the animator window, there will be parameters written.

here you have to mention about when you want your animations to change, as in your case from idle to attack.

when you have added a parameter, you can click on the white transition arrow going from idle to attack, on clicking it, on the right hand side you will be able to see the menu where you can add that parameter to the animator controller.