# How to manage special state in mecanim?

I have a game in which there is a cat that has three states: On Ground, Going Up and Coming down.

This is handled by having 3 states, up,ground and down. Now, there is an additional requirement that the cat picks up a power up and becomes invincible. In this special state, the cat doesn't die if it falls through gaps etc. In this state also, there are same animation states : up, ground and down. However, when the cat is in this special state, it's sprite changes to a starry,shiny sprite.

So now we have two sets of animations : one normal, another power up. How can I manage these two sets?

You can add new boolean PoweredUp to mecanim, and set a new duplicate group of states upPowered, groundPowered and downPowered. Make transition between corresponding states, i.e ground -> groundPowered, and use boolean PoweredUp as a condition for transition back and forth. Transitions between powered-up states can use the same triggers as non-powered.