Ejemplo n.º 1
0
    void Awake()
    {
        gameobj = GameObject.FindGameObjectsWithTag("Global")[0] as GameObject;
        global  = gameobj.GetComponent <GlobalScript>();
        GameObject GameText = GameObject.Find("WinnerText");
        Text       text     = GameText.GetComponent <Text>();

        text.text = global.getWinner();
    }