Пример #1
0
        public void SetPossibleObjectKeys(string assetBundleTag)
        {
            if (doFilter)
            {
                possibleObjects = WWResourceController.GetResourceKeysByAssetBundleFiltered(assetBundleTag, filterType);
            }
            else
            {
                possibleObjects = WWResourceController.GetResourceKeysByAssetBundle(assetBundleTag);
            }

            WWObjectGunManager.assetBundleTag = assetBundleTag;

            Debug.Log("doFilter: " + doFilter + ", filterType: " + filterType + ", currentAssetBundle: " + assetBundleTag);
        }
Пример #2
0
        /// <summary>
        ///     Gets the list of possible objects for the object gun based on
        /// </summary>
        /// <param name="doFilter"></param>
        /// <param name="filterType"></param>
        public void SetPossibleObjectKeys(bool doFilter, WWType filterType)
        {
            if (doFilter)
            {
                possibleObjects = WWResourceController.GetResourceKeysByAssetBundleFiltered(assetBundleTag, filterType);
            }
            else
            {
                possibleObjects = WWResourceController.GetResourceKeysByAssetBundle(assetBundleTag);
            }

            this.doFilter   = doFilter;
            this.filterType = filterType;

            Debug.Log("doFilter: " + doFilter + ", filterType: " + filterType + ", currentAssetBundle: " + assetBundleTag);
        }