using UnityEngine; using System.Collections; public class Killer : MonoBehaviour { void OnTriggerEnter (Collider other) { Debug.Log ("Killing object: " + other.name); other.gameObject.SendMessage ("OnKill", gameObject); //Destroy(other.gameObject); } }