Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- using Parse;
- using System.Collections.Generic;
- using System;
- using System.Threading.Tasks;
- public class ParseTestScript : MonoBehaviour {
- // Use this for initialization
- void Start () {
- /*
- ParseObject testObject = new ParseObject("TestObject");
- testObject["foo"] = "bar";
- testObject.SaveAsync();
- */
- byte[] data = System.Text.Encoding.UTF8.GetBytes("Working at Parse is great!");
- ParseFile file = new ParseFile("resume.txt", data);
- var jobApplication = new ParseObject("JobApplication");
- jobApplication["applicantName"] = "Joe Smith";
- jobApplication["applicantResumeFile"] = file;
- jobApplication.SaveAsync();
- }
- // Update is called once per frame
- void Update () {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment