HeavenStudioPlus/Assets/Scripts/Destroy.cs

14 lines
222 B
C#
Raw Normal View History

2021-12-30 08:26:18 +00:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Destroy : MonoBehaviour
{
public float time;
private void Start()
{
Destroy(this.gameObject, time);
}
}