Exemplo n.º 1
0
 private void SetupSpinnerText()
 {
     for (int i = 1; i <= 10; i++)
     {
         GameObject gameObject = SceneUtils.FindChild(base.gameObject, "NAME_" + i).gameObject;
         this.m_spinnerTexts.Add(gameObject);
     }
 }
Exemplo n.º 2
0
    private void GenerateRandomSpinnerTexts()
    {
        int           num  = 1;
        List <string> list = new List <string>();

        while (true)
        {
            string item = GameStrings.Get("GLUE_SPINNER_" + num);
            if (item == ("GLUE_SPINNER_" + num))
            {
                break;
            }
            list.Add(item);
            num++;
        }
        SceneUtils.FindChild(base.gameObject, "NAME_PerfectOpponent").gameObject.GetComponent <UberText>().Text = GameStrings.Get("GLUE_MATCHMAKER_PERFECT_OPPONENT");
        for (num = 0; num < 10; num++)
        {
            int index = Mathf.FloorToInt(UnityEngine.Random.value * list.Count);
            this.m_spinnerTexts[num].GetComponent <UberText>().Text = list[index];
            list.RemoveAt(index);
        }
    }