File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Example_unity5/Assets/Scripts Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -39,9 +39,14 @@ public DataService(string DatabaseName){
39
39
File . Copy ( loadDb , filepath ) ;
40
40
41
41
#elif UNITY_WINRT
42
- var loadDb = Application . dataPath + "/StreamingAssets/" + DatabaseName ; // this is the path to your StreamingAssets in iOS
43
- // then save to Application.persistentDataPath
44
- File . Copy ( loadDb , filepath ) ;
42
+ var loadDb = Application . dataPath + "/StreamingAssets/" + DatabaseName ; // this is the path to your StreamingAssets in iOS
43
+ // then save to Application.persistentDataPath
44
+ File . Copy ( loadDb , filepath ) ;
45
+ #else
46
+ var loadDb = Application . dataPath + "/StreamingAssets/" + DatabaseName ; // this is the path to your StreamingAssets in iOS
47
+ // then save to Application.persistentDataPath
48
+ File . Copy ( loadDb , filepath ) ;
49
+
45
50
#endif
46
51
47
52
Debug . Log ( "Database written" ) ;
You can’t perform that action at this time.
0 commit comments