14 lines
227 B
C#

using UnityEngine;
using System.Collections;
public class RuneSound : MonoBehaviour
{
float timeTillDeath = 4f;
void Update ()
{
timeTillDeath -= Time.deltaTime;
if(timeTillDeath < 0f)
Destroy(gameObject);
}
}