I thought this was how you were supposed to do it.
if(Input.GetKeyDown(KeyCode.R))&&(!animation.isPlaying) {
GameObject.Find("Soldier").animation.Play("Reload");
PlayReloadAudio();
Reload();
}
I’m having trouble figuring this out. Please help.