示例#1
0
    // Use this for initialization
    void Start()
    {
        paused = false;

        foreach (var item in new GameObject[] { resumetext, mainmenutext })
        {
            Localiser.LocaliseUIElement(item.GetComponent <Text>());
            item.SetActive(false);
        }
    }
示例#2
0
 void Start()
 {
     foreach (var item in new GameObject[] { gameOverText, scoreText, textTryAgain, textMainMenu })
     {
         Localiser.LocaliseUIElement(item.GetComponent <Text>());
         item.SetActive(false);
     }
     formatText = scoreText.GetComponent <Text>().text;
     buttonTryAgain.SetActive(false);
     buttonMainMenu.SetActive(false);
 }