0

The problem here is you're trying to tie everything together instead of using a trigger to switch between idles. You should be picking the idle animation using an if-else or a switch-case type of conditional. I've made a diagram that looks much neater (assume one of them is the default case):
...