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