Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- using System.Collections.Generic;
- using Parse;
- using System;
- using System.Threading.Tasks;
- public class Mao : MonoBehaviour
- {
- // Use this for initialization
- void Start()
- {
- var query = ParseObject.GetQuery("GameScore").OrderBy("score").Limit(10);
- query.FindAsync().ContinueWith(t =>
- {
- IEnumerable<ParseObject> results = t.Result;
- foreach (var obj in results)
- {
- //var score = obj.Get<ParseObject>("score");
- var score = obj.Get<float>("score");
- Debug.Log("Score: " + score);
- }
- });
- }
- // Update is called once per frame
- void Update()
- {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment