Hi,

I am not sure why my coin will not destroy upon collision.
Here is my code for the collision:

using UnityEngine;
using System.Collections;

public class coinFunc : MonoBehaviour
{
void OnCollisionEnter2D(Collision2D collide)
{
if (collide.gameObject.tag == “3coinModel0001”)
{
Destroy(collide.gameObject);
Debug.Log(“Hit”);
}
}
}

try this instead, i think you’re getting too creative with you collision code.

also it should be an “OnTriggerEnter2D” you’ll want to go into the inspector on the editor and make sure that “IsTrigger” is checked on all objects interacting as colliders and AT LEAST ONE of those objects has a RigidBody2D (that part messed me up a lot when dealing with colliders)

void OnTriggerEnter2D(Collider2D other)
{

if (other.tag == “3coinModel0001r”)
{

         //"this" would refer to the object itself you're trying to destroy.  If that's not working post me the 2 objects you're trying to get to interact, i may be calling them inversely
        Destroy(this.gameObject);
    }
}