//para el standalone: public void SetBothButtonsReady() { if (flechas != null) { flechas.GetComponent <Animator>().Play("flechasOff"); } button1.Ready(); button2.Ready(); if (button3 != null) { button3.Ready(); } if (button4 != null) { button4.Ready(); } anim.Play("standaloneButtonsExit"); }
public void OnButtonSelected(TriviaButton button) { if (flechas != null) { flechas.GetComponent <Animator> ().Play("flechasOff"); } if (button) { button.Ready(); } trivia.PairDone(); button1.DisableButton(); button2.DisableButton(); if (button3 != null) { button3.DisableButton(); } if (button4 != null) { button4.DisableButton(); } }