- Home /
Question by
rahulpatil6220375 · Jun 21, 2019 at 12:16 PM ·
animationbutton
animation run only one time??
//problem:one time animation proper play button click and second time when i m click button animation not play??
when i m click on button then animation proper run when again click on button then animation not run??
problem is animation should be run only one time??
public Animator animsfirst;
public Animator animssecond;
public Animator animsthird;
//reverse animation
public Animator reanimsfirst;
public Animator reanimssecond;
public Animator reanimsthird;
public void instructionpanel()
{
anim.enabled = true;
animsfirst.enabled = true;
animssecond.enabled = true;
animsthird.enabled = true;
}
public void closeinstructionpanel()
{
Debug.Log("animationrun");
//reverse animation
reanimsfirst.Play("freverse");
reanimssecond.Play("srevese");
reanimsthird.Play("lreverse");
closeinstruct.Play("clreverse");
}
Referance:
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612203611im_/https://answers.unity.com/themes/thub/images/avi.jpg)