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); }
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); }
/// <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); }