using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class Target : MonoBehaviour { // Use this for initialization void Start () { Debug.Log ("test"); } // Update is called once per frame void Update () { } void OnTriggerEnter(Collider other) { Debug.Log(other.tag); Destroy(this.gameObject); } }