Files
FutureMen/Assets/Scripts/SelfDes.cs
2025-07-10 14:34:41 +08:00

20 lines
388 B
C#

using System;
using System.Collections;
using System.Collections.Generic;
using DragonLi.Core;
using UnityEngine;
public class SelfDes : MonoBehaviour
{
public float desTime;
private void Start()
{
MonoSingleton<CoroutineTaskManager>.Instance.WaitSecondTodo(() =>
{
if(gameObject)
Destroy(gameObject);
},desTime);
}
}