Beispiel #1
0
 /// <summary>
 /// 对象池管理器轮询
 /// </summary>
 /// <param name="elapseSeconds">逻辑流逝时间,以秒为单位</param>
 /// <param name="realElapseSeconds">真实流逝时间,以秒为单位</param>
 public void OnUpdate(float deltaTime, float unscaledDeltaTime)
 {
     ClassObjectPool.OnUpdate(deltaTime, unscaledDeltaTime);
 }
Beispiel #2
0
 /// <summary>
 /// 关闭并清理对象池管理器
 /// </summary>
 public void Shutdown()
 {
     ClassObjectPool.Dispose();
 }
Beispiel #3
0
 /// <summary>
 /// 构造函数
 /// </summary>
 public PoolManager()
 {
     ClassObjectPool = new ClassObjectPool();
 }