Exemplo n.º 1
0
    // Update is called once per frame
    public void Button_clicked(int i)
    {
        if (i < 3)
        {
            if (save.Get_langue() == 0)
            {
                text.text = "Vous ne faites plus parti de " + save.Get_Tab_assos(i);
            }
            else
            {
                text.text = "You are no longer a part of " + save.Get_Tab_assos(i);
            }

            save.Set_Tab_assos(i, "none");

            button1.gameObject.SetActive(false);
            button2.gameObject.SetActive(false);
            button3.gameObject.SetActive(false);
            button4.GetComponentInChildren <Text>().text = "Continue";

            if (i == 0)
            {
                FindObjectOfType <AssosManager>().choixAssos2.text = "";
            }
            else if (i == 1)
            {
                FindObjectOfType <AssosManager>().choixAssos3.text = "";
            }
            else if (i == 2)
            {
                FindObjectOfType <AssosManager>().choixAssos4.text = "";
            }
        }
        else
        {
            canvas.SetActive(true);
            canvas_suppress.SetActive(false);
        }
    }