19 lines
308 B
C#
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);
|
|
}
|
|
}
|