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