20 lines
388 B
C#
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);
|
|
}
|
|
}
|