Пример #1
0
        public AssetBrandAssetGroup OpenBrandAssetGroup(string name)
        {
            AssetBrandAssetGroup existingItemWithType = this.GetExistingItemWithType <AssetBrandAssetGroup>(name);

            if (existingItemWithType != null)
            {
                return(existingItemWithType);
            }
            AssetBrandAssetGroup item = new AssetBrandAssetGroup(base.m_Path, name, base.authorId);

            this.m_Items.Add(item);
            return(item);
        }
Пример #2
0
        public AssetBrandAssetGroup OpenBrandAssetGroup(string name)
        {
            AssetBrandAssetGroup existingItemWithType = this.GetExistingItemWithType <AssetBrandAssetGroup>(name);

            if (existingItemWithType != null)
            {
                return(existingItemWithType);
            }
            AssetBrandAssetGroup assetBrandAssetGroup = new AssetBrandAssetGroup(this.m_Path, name, this.authorId);

            this.m_Items.Add((AssetCatalogItem)assetBrandAssetGroup);
            return(assetBrandAssetGroup);
        }
Пример #3
0
        // Checks if a brand asset with given name exists and returns it if it does.
        // Otherwise, creates a new brand asset.
        public AssetBrandAssetGroup OpenBrandAssetGroup(string name)
        {
            var item = GetExistingItemWithType <AssetBrandAssetGroup>(name);

            if (item != null)
            {
                return(item);
            }

            var brandAsset = new AssetBrandAssetGroup(m_Path, name, authorId);

            m_Items.Add(brandAsset);
            return(brandAsset);
        }