mirror of
https://github.com/ConjureETS/OuijaMTLGJ2016.git
synced 2026-03-24 02:01:06 +00:00
14 lines
227 B
C#
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);
|
|
}
|
|
}
|