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); } }