示例#1
0
 public void finishedInput()
 {
     CrossLevel.AddScore(CrossLevel.Level, GameObject.FindGameObjectWithTag("NewName").GetComponent <Text>().text);
     GameObject.FindGameObjectWithTag("Input").SetActive(false);
     for (int i = 1; i <= 10; i++)
     {
         text[i].text = i + " " + CrossLevel.Names[i - 1] + "                 " + CrossLevel.Scores[i - 1];
     }
     StartCoroutine(loadTitle());
 }
示例#2
0
 void Start()
 {
     //CrossLevel.readScores();
     CrossLevel.TestScore(CrossLevel.Level);
     text = GetComponentsInChildren <Text>();
     // text [0] is the title
     for (int i = 1; i <= 10; i++)
     {
         text[i].text = i + " " + CrossLevel.Names[i - 1] + "                 " + CrossLevel.Scores[i - 1];
     }
     if (!CrossLevel.newHighScore)
     {
         GameObject.FindGameObjectWithTag("Input").SetActive(false);
         StartCoroutine(loadTitle());
     }
 }