Files
valheim/Assets/sucai/RFX_Scripts/Destroy.cs
2025-07-11 16:53:01 +08:00

13 lines
176 B
C#

using UnityEngine;
using System.Collections;
public class Destroy : MonoBehaviour {
public float lifetime = 2.0f;
void Awake()
{
Destroy(gameObject, lifetime);
}
}