本文共 309 字,大约阅读时间需要 1 分钟。
using System.Collections;using System.Collections.Generic;using UnityEngine;public class destroy : MonoBehaviour{ // Start is called before the first frame update void Start() { Destroy(gameObject, 3.0f);//3秒后销毁 } // Update is called once per frame void Update() { }}
转载地址:http://hlhvz.baihongyu.com/