Unity3d,Parse.com抛出异常,(System.AggregateException)

时间:2015-12-17 07:54:36

标签: parse-platform unity3d aggregateexception

所以我试图在我的团结项目中使用parse.com,它一直正常工作,直到我在我的用户数据库中添加了一个新列。每次我试图访问我的currentUser时都会抛出异常。

在下面显示的错误中,它提到我的login.cs脚本的第20行出错了,但是,在我的登录场景和我的菜单场景中调用了此脚本的第20行,但只抛出了异常在菜单场景中,而不是在登录场景中。

当我试图运行场景时,它说

AggregateException: Exception of type 'System.AggregateException' was thrown.
System.Threading.Tasks.Task.Wait ()
Parse.ParseUser.get_CurrentUser ()
login.Update () (at Assets/Scripts/login.cs:20)

这是我的一些代码第20行:

string currentSceneName = SceneManager.GetActiveScene ().name;
if ((ParseUser.CurrentUser != null) && (currentSceneName != headToScene)) {
  SceneManager.LoadScene (headToScene);
}

任何建议都将不胜感激,谢谢!

0 个答案:

没有答案
相关问题