Mixable animation

I want to know how to make animations that can be combined with each other for use in the game.
For example, play an animation that shoots while the running animation is playing.