コード例 #1
0
        private void Awake()
        {
            // Need to make sure Manager registry is initialized first
            groundPlane = new Plane(Vector3.up, Vector3.up);

            foreach (string s in ResourceLoader.FindAssetBundlePaths())
            {
                Debug.Log(s);
            }

            possibleTiles = WWResourceController.GetResourceKeysByAssetBundle("ww_basic_assets", "characters");
            Debug.LogWarning(possibleTiles.Count);
        }
コード例 #2
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);
        }
コード例 #3
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);
        }