2025-04-18 21:05:56 +08:00

19 lines
308 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DelayPush : MonoBehaviour
{
// 对象激活时
void OnEnable()
{
Invoke("Push", 1);
}
void Push()
{
PoolMgr.GetInstance().PushObj(this.gameObject.name, this.gameObject);
}
}