I am trying to make a shotgun reloading animation that plays however many times it takes to fully reload. I tried using a for loop but this only plays the animation one time.
if (Input.GetKeyDown(KeyCode.R) && ammoInMag != clipSize && totalAmmo >= 0)
{
for (int i = 0; i < clipSize - ammoInMag; i++)
{
reload.SetTrigger(“isReloading”);
StartCoroutine(Reload());
}
return;
}