示例#1
0
    public void TriggerClassement()
    {
        nbJoueurs = MenuLobby.Instance().GetPlayersNumber();
        plyrScores.Add(currentScoreJ1);
        plyrScores.Add(currentScoreJ2);
        plyrScores.Add(currentScoreJ3);
        plyrScores.Add(currentScoreJ4);

        tmpPlyrScores.Add(currentScoreJ1);
        tmpPlyrScores.Add(currentScoreJ2);
        tmpPlyrScores.Add(currentScoreJ3);
        tmpPlyrScores.Add(currentScoreJ4);

        plyrScores.Sort();
        plyrScores.Reverse();

        FillPlayers();

        for (var i = 1; i <= nbJoueurs; i++)
        {
            FillScoreText(scoresText[i - 1], plyrScores[i - 1]);
        }
        classement.SetActive(true);
        uiIG.SetActive(false);
        Time.timeScale = 0;
        apB            = true;
    }
示例#2
0
 void Awake()
 {
     if (instance != null)
     {
         Destroy(gameObject);
     }
     else
     {
         instance = this;
     }
 }
示例#3
0
 private void Awake()
 {
     MenuLobby.instance = this;
     this.playerRows = new List<MenuPlayerRow>();
 }