void OnButtonClickedChecker(ButtonStandard button) { if (ready) { OnButtonClicked(button); } }
void AddButton(TagData data) { print(data.name); ButtonStandard b = Instantiate(button); b.transform.SetParent(container); b.Init(data.id, data.name); b.transform.localScale = Vector3.one; }
public override void OnButtonClicked(ButtonStandard button) { Events.OnSoundFX("ui"); switch (button.GetComponent <ButtonStandardCategories>().totalPairs) { case 2: Data.Instance.mode = Data.modes.CLASSIC; break; case 3: Data.Instance.mode = Data.modes.TRIPLE; break; case 4: Data.Instance.mode = Data.modes.CUADROPLE; break; } Data.Instance.triviaData.Load(button.id); LoadScreen(2, true); }
//void AddButton(TagData data) //{ // ButtonStandard b = Instantiate(button); // b.transform.SetParent(container); // b.Init(data.id, data.name); // b.transform.localScale = Vector3.one; //} public override void OnButtonClicked(ButtonStandard button) { Events.OnSoundFX("ui"); if (button.id == 0) { Data.Instance.mode = Data.modes.CLASSIC; } else if (button.id == 1) { Data.Instance.mode = Data.modes.TRIPLE; } else { Data.Instance.mode = Data.modes.CUADROPLE; } //Data.Instance.triviaData.Load(button.id); LoadScreen(2, true); }
public virtual void OnButtonClicked(ButtonStandard button) { }
public override void OnButtonClicked(ButtonStandard button) { LoadScreen(2, true); }
public override void OnButtonClicked(ButtonStandard button) { Events.OnSoundFX("ui"); LoadScreen(2, true); }