﻿using UnityEngine;

public class EnemySpawningFlash : MonoBehaviour 
{
    public float flashTime;
    float startTime;

    private void Start()
    {
        startTime = Time.time;
    }

    private void Update()
    {
        if (Time.time > startTime + flashTime)
        {
            Destroy(gameObject);
        }
    }
}
