public void onTriggerEnter (Collider col) {
if (col.gameObject.GetComponent () != null) {
GameObject.Destroy (this.gameObject);
GameObject.Destroy (col.gameObject);
}
}
}
Simply because the MonoBehaviour function is OnTriggerEnter
and not onTriggerEnter