Esempio n. 1
0
    void OnTriggerEnter(Collider other)
    {
        if (other.tag == "DABA")
        {
            Debug.Log("stuff happens");
            Gun.ammunition++;
            other.gameObject.SetActive(false);


            MyTimer t = Instantiate(timerPrefab);
            t.SetUpTimer(2, () => { other.gameObject.SetActive(true); });
        }
    }