Destroy(gameObject, 3); //it will disappear after 3 seconds
public float delay; void Start() { Destroy(gameObject,delay); }