EF_destroy.cs 261 B

1234567891011121314
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class EF_destroy : MonoBehaviour {
  5. public float DestroyTime;
  6. // Use this for initialization
  7. void Start () {
  8. Destroy(this.gameObject, DestroyTime);
  9. }
  10. }