summaryrefslogtreecommitdiff
path: root/Assets/Art/Vfx/Hit & Slashes Vol.3/SelfDestruct.cs
blob: 7add813842e59594c81a434c92d78b513a068314 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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);
		}
	}
}