public SpawnPool(string strPoolName, IzPoolManager izPoolManager, GameObject parentGameObject) { this._strPoolName = strPoolName; this._izPoolManager = izPoolManager; this._parentGameObject = parentGameObject; this._rootGameObject = new GameObject(strPoolName); this._rootGameObject.transform.parent = this._parentGameObject.transform; }
public static IzSpawnPool CreateSpawnPool(string strPoolName, IzPoolManager izPoolManager, GameObject parentGameObject) { return(new SpawnPool(strPoolName, izPoolManager, parentGameObject)); }