summaryrefslogtreecommitdiff
path: root/Assets/Art/Vfx/Hit & Slashes Vol.3/SelfDestruct.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-08-09 20:00:32 +0800
committerchai <chaifix@163.com>2021-08-09 20:00:32 +0800
commit178934547d835d28b628ccc884e20a5b23b437d4 (patch)
treec40d05efa05425e6a51d60e5fec055b441d1efbc /Assets/Art/Vfx/Hit & Slashes Vol.3/SelfDestruct.cs
parent701c32a420a29ac1eb6be1d214c59b238fa388b2 (diff)
+特效
Diffstat (limited to 'Assets/Art/Vfx/Hit & Slashes Vol.3/SelfDestruct.cs')
-rw-r--r--Assets/Art/Vfx/Hit & Slashes Vol.3/SelfDestruct.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/Assets/Art/Vfx/Hit & Slashes Vol.3/SelfDestruct.cs b/Assets/Art/Vfx/Hit & Slashes Vol.3/SelfDestruct.cs
new file mode 100644
index 00000000..7add8138
--- /dev/null
+++ b/Assets/Art/Vfx/Hit & Slashes Vol.3/SelfDestruct.cs
@@ -0,0 +1,13 @@
+using UnityEngine;
+using System.Collections;
+
+
+public class SelfDestruct : MonoBehaviour {
+ public float selfdestruct_in = 4; // Setting this to 0 means no selfdestruct.
+
+ void Start () {
+ if ( selfdestruct_in != 0){
+ Destroy (gameObject, selfdestruct_in);
+ }
+ }
+}