Ejemplo n.º 1
0
    void OnTriggerEnter2D(Collider2D other)
    {
        AttributeCollection bpc = other.GetComponent <AttributeCollection> ();

        if (bpc != null)
        {
            bpc.Add_Part(gameObject);
        }
    }