Hi everyone,
I’m using a GUI with several buttons, each button activated one animation in other script attached to an object.
Thanks for your help,
Can I use the same variable trigger Go, with different number? like this.
// For Example.....
if (buttonsGUI.triggerGo ==1){
animacion01();
buttonsGUI.triggerGo = 0;
}
if (buttonsGUI.triggerGo ==2){
animacion02();
buttonsGUI.triggerGo = 0;
}
if (buttonsGUI.triggerGo ==3){
animacion03();
buttonsGUI.triggerGo = 0;
}
if (buttonsGUI.triggerGo ==4){
animacion04();
buttonsGUI.triggerGo = 0;
}
Or use a different variable for each one animation? Like this?
if (buttonsGUI.tryGo ==1){
animacion01();
buttonsGUI.erGo = 0;
}
if (buttonsGUI.torGo ==2){
animacion02();
buttonsGUI.arGo = 0;
}
if (buttonsGUI.maGo ==3){
animacion03();
buttonsGUI.rarGo = 0;
}
if (buttonsGUI.solGo ==4){
animacion04();
buttonsGUI.moonGo = 0;
}