📜  如何使局部系统在完成后自行销毁 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:22.790000             🧑  作者: Mango

代码示例1
GameObject explosion = Instantiate(_Explosion, transform.position, Quaternion.identity);
            Destroy(explosion, explosion.GetComponent().main.duration);