Example #1
0
        public new static SceneRes Allocate(string name)
        {
            SceneRes res = ObjectPool <SceneRes> .Instance.Allocate();

            if (res != null)
            {
                res.name = name;
                res.InitAssetBundleName();
            }
            return(res);
        }
Example #2
0
        public static SceneRes Allocate(string name)
        {
            SceneRes res = Dependency.ResKit.Pool.SafeObjectPool <SceneRes> .Instance.Allocate();

            if (res != null)
            {
                res.AssetName = name;
                res.InitAssetBundleName();
            }
            return(res);
        }