Search Unity

Animation only play once

Discussion in 'Animation' started by xuchun9000, Jun 26, 2020.

  1. xuchun9000

    xuchun9000

    Joined:
    Feb 24, 2017
    Posts:
    16
    animation.png
    hello:

    when I run this script, when pressing the "Space" key, the "fire" animation runs, but after running, the blue bar get to the end and stopped there, meaning the animation finishs,

    when I press "Space" bar again the "fire" animation not working, it can only animate once

    how to fix it? I want the "fire" animation runs whenever I press space key

    thanks