Can I play two different animations on one button?
I have a rifle with a mag attached. After each shot I press "R" to reload (and play animation "Reload") 10 times until the mag is empty. Then by pressing the button "R" again it should play "Empty" animation and change the mag but it doesn't play anything. Can you please help me? Here I've written few lines, maybe I can add something to make it work:
private int currentAmmo;
void GetButtons()
{
reload = Input.GetKeyDown(KeyCode.R);
void Update()
{
anim.SetBool(hashs.emptyHash, empty);
if (currentAmmo <= 0)
{
if (Input.GetKeyDown(KeyCode.R))
{
anim.Play("Empty");
}
}
Comment
Your answer
Follow this Question
Related Questions
Help me to make a delay when shooting 0 Answers
How to make paint characters shoot each other? 1 Answer
How can I make my character shoot? 0 Answers
Need to press key 2 times to shoot 0 Answers
how do i refer to the animation in the shooting script? 2 Answers