UnityEngine.Pool 中的类
/
/
字典版本的 CollectionPool<T0,T1>。
using UnityEngine.Pool;
public class Example { void GetPooled() { // Get a pooled instance var instance = DictionaryPool<int, int>.Get();
// Use the Dictionary
// Return it back to the pool DictionaryPool<int, int>.Release(instance); } }