Example #1
0
 public void OnConnexionNonAnonymeClick()
 {
     EmailConnexion.SetActive(true);
     ReturnButton.SetActive(true);
     MenuButton.SetActive(false);
     ConnectedButton.SetActive(false);
 }
Example #2
0
    public void OnClassementClick()
    {
        connexion.GetMaxScoreValue();
        ClassementGUI.SetActive(true);
        ReturnButton.SetActive(true);
        MenuGUI.SetActive(false);
        MenuButton.SetActive(false);
        ConnectedButton.SetActive(false);

        ScoreManagerScript.Score = connexion.getMaxScore["MaxScore"];
    }
Example #3
0
    public void OnReturnClick()
    {
        ClassementGUI.SetActive(false);
        SuccesGUI.SetActive(false);
        ReturnButton.SetActive(false);
        EmailConnexion.SetActive(false);
        MenuGUI.SetActive(true);
        MenuButton.SetActive(true);
        ConnectedButton.SetActive(true);

        if (connexion.isconnectedWithAccount)
        {
            Compte.SetActive(false);
        }

        ScoreManagerScript.Score = 0;
        connexion.GetMaxScoreValue();
    }
Example #4
0
    public void OnSuccesClick()
    {
        connexion.GetMaxScoreValue();
        SuccesGUI.SetActive(true);
        ReturnButton.SetActive(true);
        MenuGUI.SetActive(false);
        MenuButton.SetActive(false);
        ConnectedButton.SetActive(false);

        if (connexion.getMaxScore["MaxScore"] >= 10)
        {
            Succes[0].SetActive(true);
            if (connexion.getMaxScore["MaxScore"] >= 50)
            {
                Succes[1].SetActive(true);
                if (connexion.getMaxScore["MaxScore"] >= 100)
                {
                    Succes[2].SetActive(true);
                }
            }
        }
    }
Example #5
0
 public void OnConnexionClick()
 {
     connexion.AnonymeConnexion();
     ConnectedButton.SetActive(true);
     GameObject.Find("Connexion").SetActive(false);
 }