Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using Parse;
- public class ParseBigFile : MonoBehaviour {
- // Use this for initialization
- void Awake()
- {
- print("Running..");
- }
- void Start() {
- int soto = 1000;
- for (int i = 0; i < soto; i++) {
- byte[] data = System.Text.Encoding.UTF8.GetBytes("File DataUser Client " + i);
- ParseFile file = new ParseFile("resume.txt", data);
- //Task saveTask =
- //file.SaveAsync();
- ParseObject gameScore = new ParseObject("TestBigData");
- gameScore["file"] = file;
- gameScore["id_facebook"] = "idfb " + i;
- gameScore["score"] = i;
- gameScore["level"] = i;
- gameScore.SaveAsync();
- print("i= " + i);
- }
- }
- // Update is called once per frame
- void Update() {
- }
- void uploadFile() {
- byte[] data = System.Text.Encoding.UTF8.GetBytes("Working at Parse is great!");
- ParseFile file = new ParseFile("resume.txt", data);
- //Task saveTask =
- file.SaveAsync();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment