SelfDestroy.cs 185 B

12345678910111213
  1. using UnityEngine;
  2. using System.Collections;
  3. public class SelfDestroy : MonoBehaviour
  4. {
  5. public float m_time = 1.0f;
  6. void Start ()
  7. {
  8. Destroy(this.gameObject, m_time);
  9. }
  10. }