Files
FutureMen2/Assets/_FutureMen2/Scripts/SelfDes.cs
2026-01-05 11:00:50 +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);
}
}