summaryrefslogtreecommitdiff
path: root/Assets/Art/Vfx/StylizedProjectilePack1/scripts/destroyMe.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Assets/Art/Vfx/StylizedProjectilePack1/scripts/destroyMe.cs')
-rw-r--r--Assets/Art/Vfx/StylizedProjectilePack1/scripts/destroyMe.cs26
1 files changed, 26 insertions, 0 deletions
diff --git a/Assets/Art/Vfx/StylizedProjectilePack1/scripts/destroyMe.cs b/Assets/Art/Vfx/StylizedProjectilePack1/scripts/destroyMe.cs
new file mode 100644
index 00000000..cb8061db
--- /dev/null
+++ b/Assets/Art/Vfx/StylizedProjectilePack1/scripts/destroyMe.cs
@@ -0,0 +1,26 @@
+using UnityEngine;
+using System.Collections;
+
+public class destroyMe : MonoBehaviour{
+
+ float timer;
+ public float deathtimer = 10;
+
+
+ // Use this for initialization
+ void Start () {
+
+ }
+
+ // Update is called once per frame
+ void Update ()
+ {
+ timer += Time.deltaTime;
+
+ if(timer >= deathtimer)
+ {
+ Destroy(gameObject);
+ }
+
+ }
+}