Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- using Parse;
- public class Mao : MonoBehaviour {
- // Use this for initialization
- void Start () {
- /*
- ParseObject testObject = new ParseObject("Coder");
- testObject["Name"] = "Thieu Mao";
- testObject["Project"] = "Phim";
- testObject.SaveAsync();
- testObject = new ParseObject("Coder");
- testObject["Name"] = "Thieu Mao";
- testObject["Project"] = "Tivi";
- testObject.SaveAsync();
- * */
- ParseQuery<ParseObject> query = ParseObject.GetQuery("Coder");
- query.GetAsync("KiIGm7Dqgo").ContinueWith(t =>
- {
- ParseObject gameScore = t.Result;
- //int score = gameScore.Get<int>("score");
- string Project = gameScore.Get<string>("Project");
- print("Ket qua: " + Project);
- //bool cheatMode = gameScore.Get<bool>("cheatMode");
- });
- }
- // Update is called once per frame
- void Update () {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment