Пример #1
0
 // Update is called once per frame
 void Update()
 {
     if (CharacterSelectPanel.GetCurrentIndex() == 0)
     {
         GetComponent <Text>().text = str1;
     }
     else if (CharacterSelectPanel.GetCurrentIndex() == 1)
     {
         GetComponent <Text>().text = str2;
     }
     else if (CharacterSelectPanel.GetCurrentIndex() == 2)
     {
         GetComponent <Text>().text = str3;
     }
     else if (CharacterSelectPanel.GetCurrentIndex() == 3)
     {
         GetComponent <Text>().text = str4;
     }
 }