@@ -11,12 +11,12 @@ public static class AssetManager
1111
1212 public static AssetBundleManifest AssetManifest { get ; private set ; }
1313
14- private static Dictionary < uint , string > IDLookup = new Dictionary < uint , string > ( ) ;
15- private static Dictionary < string , uint > PathLookup = new Dictionary < string , uint > ( ) ;
14+ public static Dictionary < uint , string > IDLookup { get ; private set ; } = new Dictionary < uint , string > ( ) ;
15+ public static Dictionary < string , uint > PathLookup { get ; private set ; } = new Dictionary < string , uint > ( ) ;
1616
17- public static Dictionary < string , AssetBundle > Bundles = new Dictionary < string , AssetBundle > ( System . StringComparer . OrdinalIgnoreCase ) ;
18- public static Dictionary < string , AssetBundle > AssetPaths = new Dictionary < string , AssetBundle > ( System . StringComparer . OrdinalIgnoreCase ) ;
19- public static Dictionary < string , Object > Cache = new Dictionary < string , Object > ( ) ;
17+ public static Dictionary < string , AssetBundle > Bundles { get ; private set ; } = new Dictionary < string , AssetBundle > ( System . StringComparer . OrdinalIgnoreCase ) ;
18+ public static Dictionary < string , AssetBundle > AssetPaths { get ; private set ; } = new Dictionary < string , AssetBundle > ( System . StringComparer . OrdinalIgnoreCase ) ;
19+ public static Dictionary < string , Object > Cache { get ; private set ; } = new Dictionary < string , Object > ( ) ;
2020
2121 public static bool IsInitialised { get ; private set ; }
2222
@@ -69,7 +69,7 @@ public static void Initialise(string bundlesRoot)
6969 return ;
7070 }
7171
72- for ( uint index = 0 ; ( long ) index < ( long ) Manifest . pooledStrings . Length ; ++ index )
72+ for ( uint index = 0 ; index < Manifest . pooledStrings . Length ; ++ index )
7373 {
7474 IDLookup . Add ( Manifest . pooledStrings [ index ] . hash , Manifest . pooledStrings [ index ] . str ) ;
7575 PathLookup . Add ( Manifest . pooledStrings [ index ] . str , Manifest . pooledStrings [ index ] . hash ) ;
@@ -86,7 +86,7 @@ public static void Initialise(string bundlesRoot)
8686 Debug . Log ( "Bundle already loaded." ) ;
8787 }
8888
89- public static T GetAsset < T > ( string filePath ) where T : Object
89+ private static T GetAsset < T > ( string filePath ) where T : Object
9090 {
9191 AssetBundle bundle = null ;
9292
0 commit comments