File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -36,29 +36,11 @@ private static void Init()
3636 }
3737 else
3838 {
39- var assetsFolder = GetAssetsFolderPath ( ) ;
40- Debug . Log ( assetsFolder ) ;
4139 _settings = ScriptableObject . CreateInstance < AutoSaveSettings > ( ) ;
4240 AssetDatabase . CreateAsset ( _settings , "Assets/AutoSaveSettings.asset" ) ;
4341 AssetDatabase . SaveAssets ( ) ;
4442 }
4543 }
46-
47- private static string GetAssetsFolderPath ( )
48- {
49- string arbitraryPath = AssetDatabase . GUIDToAssetPath ( "0000000000000000" ) ;
50- int assetsIndex = arbitraryPath . IndexOf ( "Assets" ) ;
51- if ( assetsIndex != - 1 )
52- {
53- return arbitraryPath . Substring ( 0 , assetsIndex + 6 ) ;
54- }
55- else
56- {
57- Debug . LogError ( "Could not find Assets folder." ) ;
58- return "" ;
59- }
60- return "" ;
61- }
6244
6345
6446 private static void Update ( )
You can’t perform that action at this time.
0 commit comments