Files
Main/Assets/Plugins/References/FuncellBase/ObjectPool/SimplePoolSweeper.cs
2025-01-25 04:38:09 +08:00

24 lines
540 B
C#

using System;
using System.Collections.Generic;
using System.Text;
namespace Thousandto.Core.Base
{
public static class SimplePoolSweeper
{
static List<MyAction> _sweepActionList = new List<MyAction>();
public static void Sweep()
{
for (int i = 0; i < _sweepActionList.Count; ++i)
{
_sweepActionList[i]();
}
}
public static void Register(MyAction sweepAction)
{
_sweepActionList.Add(sweepAction);
}
}
}