unity play non-looping ainamtion code example Example: unity replay non looping animation anim.Play("Animation", -1, 0f);