Destroy GameObject With Collision Using C#

Hi, Im trying to make my player destroy a box when collides with it. Here's what I have so far:

using UnityEngine; using System.Collections; public class NewBehaviourScript : MonoBehaviour { private GameObject objPlayer; private GameObject objBox;

void Start () {
    objPlayer = (GameObject) GameObject.FindWithTag ("Player");
    objBox = (GameObject) GameObject.FindWithTag ("Finish");
    }
    // Update is called once per frame
    void Update () {
        if ( )
        {
            removeMe();
                }
    }
            void removeMe () // removes the character
    {
    Destroy(gameObject);
    }
}

What do i need to put in the if statement to make my Player destroy the Box. I would appreciate any help you can give me as i have no idea what i am doing. Thanks in advance!

I think you'll want to restructure you code a little to use colliders. See these links for starters:

http://unity3d.com/support/documentation/ScriptReference/MonoBehaviour.OnTriggerEnter.html

http://answers.unity3d.com/questions/4063/ontriggerenter-question

And what skovacs1 said.

Having added the collider, you can use the OnTriggerEnter event (rather than Update event)