using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class DestroyAfter : MonoBehaviour
{
    [SerializeField]
    private float destroyInSeconds = 1.0f;

    public void Init(float delay)
    {
        this.destroyInSeconds = delay;
        Destroy(gameObject, delay);
    }
}