Guest User

Untitled

a guest
Dec 18th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. if (Application.platform == RuntimePlatform.Android)
  2. {
  3. PathOnAndroid = Path.Combine(Application.persistentDataPath, @"file.txt");
  4. if (File.Exists(PathOnAndroid))
  5. return;
  6.  
  7.  
  8. WWW www = new WWW(PathOnAndroid);
  9.  
  10. while (www.isDone == false)
  11. {
  12.  
  13. }
  14.  
  15. File.WriteAllBytes(PathOnAndroid, www.bytes);
  16. }
  17. else
  18. {
  19. sPathonWindows = Path.Combine(Application.persistentDataPath, @"file.txt");
  20. }
Add Comment
Please, Sign In to add comment