微信登录

Tools - DestroyForTime.cs - 计时工具

  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class DestroyForTime : MonoBehaviour {
  5. public float time = 1;
  6. // Use this for initialization
  7. void Start () {
  8. Destroy(this.gameObject, time);
  9. }
  10. }
Tools - DestroyForTime.cs - 计时工具