DestroyOjbect.cs 229 B

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