Search Unity

Question Animation stop in the middle when two key press

Discussion in 'Animation' started by white_comet, Mar 29, 2022.

  1. white_comet

    white_comet

    Joined:
    May 2, 2021
    Posts:
    32
    Hi! I set punch key and WASD vector2 keys for moving in new input system. and I set some animation for each of them. for punching animation I have set trigger event in the beginning and the end of animation so when punching animation started a boolean return false so character cannot do other things until animation ended.
    The problem is if player click punch and move key at same times the punching animation will run so trigger boolean return false but animation stop in the middle of animation not run to the end and is not going to return boolean back to true. How to force animation keep running til is finished in this situation?