using UnityEngine; /// This component will destroy the GameObject it is attached to (in Start()). public class OnStartDelete : MonoBehaviour { // Use this for initialization void Start () { Component.DestroyObject(this.gameObject); } }