继承的Singleton脚本为 public class Singleton<T> where T : new() { private static T _instance; public static T GetIstance() { if (_instance == null) _instance = new T(); return _instance; } } 1.PoolManager using System.Collections; using System.Collections.Generic; using UnityEngine; /// <summary> /// 缓存池模块 /// 1.Dictionary List /// 2.Gameobject 和Resource两个公共类的API /// </summary> public class PoolManager : Singleton<PoolManager> { //缓存池容器 public Dictionary<string,List<GameObject>> poolDic = new...
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Get in touch with poolDic
Contact poolDic, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack