Exemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        CDTscript = timer.GetComponent <CountDownTimer>();
        tcSctipt  = unityChan.GetComponent <TreasureCountScript>();

        foreach (Transform child in transform)
        {
            child.gameObject.SetActive(false);
        }
    }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     treasureNum = GetComponentInChildren <Text>();
     unityChan   = GameObject.Find("UnityChan");
     tcSctipt    = unityChan.GetComponent <TreasureCountScript>();
 }