Example #1
0
 void OnButtonClickedChecker(ButtonStandard button)
 {
     if (ready)
     {
         OnButtonClicked(button);
     }
 }
Example #2
0
    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;
    }
Example #3
0
    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);
    }
Example #4
0
    //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);
    }
Example #5
0
 public virtual void OnButtonClicked(ButtonStandard button)
 {
 }
Example #6
0
 public override void OnButtonClicked(ButtonStandard button)
 {
     LoadScreen(2, true);
 }
Example #7
0
 public override void OnButtonClicked(ButtonStandard button)
 {
     Events.OnSoundFX("ui");
     LoadScreen(2, true);
 }