Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Question Animation stop in the middle when two key press

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

  1. white_comet


    May 2, 2021
    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?