- Home /
 
Unity Animation just play once
         public void reload()
         {
             if(!reload && bullet < 30 && !sight)
             {
                 animator.Play("reloadanimation");
                 a_Source.PlayOneShot(reloadsound, 1.2f);
                 reloadtime -= 1 * Time.deltaTime;
                 reload = true;
                 if(reloadtime <= 0)
                 {
                      reloadtime = 1.4f;
                      reload = false;
                 }
             }
         }
 
               Hello unity users! I made a simple reload animation.If i click reload button animation works very well, but just for once. After animation plays if i click reload button again no animation plays. I don't have a good language so can anyone explain simply. Thanks
               Comment
              
 
               
              Your answer
 
             Follow this Question
Related Questions
Animation keeps looping even on WrapMode.Once; 1 Answer
Not playing entire animation when it is called. 1 Answer
Play animation with key once 1 Answer
Preventing all animations from playing? 0 Answers
Playing audio immediately 1 Answer