Example #1
0
    // Use this for initialization
    void Start()
    {
        gametimerref = GameObject.FindWithTag("GameController").GetComponent <gametimer>();

        timetext = GetComponent <Text>();
        //print (gametimerref.timemins);
        timetext.text = gametimerref.timemins.ToString("f0") + ":00";
    }
Example #2
0
    // Use this for initialization
    void Start()
    {
        gametimerref = GameObject.FindWithTag("GameController").GetComponent<gametimer>();

        timetext = GetComponent<Text>();
        //print (gametimerref.timemins);
        timetext.text = gametimerref.timemins.ToString("f0")+":00";
    }