﻿using UnityEngine;
using System.Collections;

namespace NDRLiteFPS
{
    public class SurfaceImpact : MonoBehaviour
    {
        [SerializeField] AudioSource audioSource;

        public AudioSource AudioSource { get => audioSource; }

        private void Start()
        {
            Destroy(gameObject, 10f);
        }

        private void Update()
        {
            audioSource.enabled = true;
        }
    }
}