summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/SelectorPool.cs
blob: d2f80735960aa5335dc56c2f5a4de1685d9e800a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System;
using XUtliPoolLib;

namespace XMainClient
{
	internal class SelectorPool
	{
		private static ObjectPool<Selector> selectors = new ObjectPool<Selector>(new ObjectPool<Selector>.CreateObj(SelectorPool.Create), null, null);

		public static Selector Create()
		{
			return new Selector();
		}

		public static Selector Get()
		{
			return SelectorPool.selectors.Get();
		}

		public static void Release(Selector selector)
		{
			SelectorPool.selectors.Release(selector);
		}
	}
}