Ejemplo n.º 1
0
    private void OnTriggerEnter(Collider other)
    {
        //if(other.name=="Player")
        {
            MAN.collect();

            Debug.Log("coin collected");
            Destroy(gameObject);
        }
    }