17 lines
278 B
C#
17 lines
278 B
C#
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
|
||
|
public class DelayRemove : MonoBehaviour
|
||
|
{
|
||
|
void OnEnable()
|
||
|
{
|
||
|
Invoke("Remove",0.5f);
|
||
|
}
|
||
|
|
||
|
private void Remove()
|
||
|
{
|
||
|
PoolMgr.Instance.PushObj(this.gameObject);
|
||
|
}
|
||
|
}
|