I have an animator that has 3 states: idle,walking and running. Character switches between these 3 animations without any problem. But i also want to add a swimming animation state. I detect collision with water and player with this:
How should i set up the animator so player can switch to Swimming animation no matter what state it currently in?
Player switch to walk if “move buttons” pressed, and switch to running if “move buttons”+Lshift pressed
I will first add “floating on water” animation if player isn’t moving but on water. After that i will add swim animation if player is on water + moving.