Exemplo n.º 1
0
 public static GameObjectContainer Process(AssetTrackMgr assetTrackMgr, GameObjectContainer container, string path, GameObject prefab, int disposeTime, int capcity)
 {
     container.assetTrackMgr = assetTrackMgr;
     container.path          = path;
     container.prefab        = prefab;
     container.DisposeTime   = disposeTime;
     container.Capcaity      = capcity;
     return(container);
 }
Exemplo n.º 2
0
        public GameObjectContainer GetGameObjectContainer(AssetTrackMgr assetTrackMgr, string path, GameObject prefab, int disposeTime, int capcity)
        {
            var container = gameobjectContainerPool.Get();

            return(GameObjectContainer.Process(assetTrackMgr, container, path, prefab, disposeTime, capcity));
        }