Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

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