我正在使用Parse和Unity,我已经将我保存的对象子类化了。我正在检索ne的对象有一些列表,包括一些只是int数组的列表。目前我可以检索该对象,但列表为空。即使使用query.include("columnid")
示例代码
// In this code MPGameState contains an array of pointers to the Player Object
// Deck is an array of integers
// both are null in the callback
public void Init (string gameID) {
ParseObject.RegisterSubclass<MPPlayer> ();
ParseObject.RegisterSubclass<MPGameState> ();
var query = new ParseQuery<MPGameState> ()
.WhereEqualTo ("objectId", gameID);
query.Include ("Players");
query.Include ("Deck");
query.FirstAsync().ContinueWith(t => {
gameState = (MPGameState) t.Result;
Debug.LogFormat("Players {0} | Deck {1}", gamestate.Players, gameState.Deck);
});
}
我需要做些什么才能让这段代码返回我的int数组和指针数组的列表值?