Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (Application.platform == RuntimePlatform.Android)
- {
- PathOnAndroid = Path.Combine(Application.persistentDataPath, @"file.txt");
- if (File.Exists(PathOnAndroid))
- return;
- WWW www = new WWW(PathOnAndroid);
- while (www.isDone == false)
- {
- }
- File.WriteAllBytes(PathOnAndroid, www.bytes);
- }
- else
- {
- sPathonWindows = Path.Combine(Application.persistentDataPath, @"file.txt");
- }
Add Comment
Please, Sign In to add comment