This requires more explination than I think fits well in a forum
https://learn.unity.com/tutorial/controlling-animation
This Unity learn section should get you going though. It talks about setting up and controlling your animator and as I recall it uses an example of jumping. It does get into the scripting aspect as well
https://learn.unity.com/tutorial/controlling-animation
This Unity learn section should get you going though. It talks about setting up and controlling your animator and as I recall it uses an example of jumping. It does get into the scripting aspect as well