嗨,我有 unity3d 和最新的 facebook sdk
我已经下载了示例项目,但我遇到了一个问题,当我启动项目并单击登录时,unity 立即显示此图像:

我希望我从 mainmenu.cs 中的这部分代码中得到一个错误
if (FB.IsLoggedIn)
{
string panelText = "Welcome ";
if (GameStateManager.Username != null) panelText += GameStateManager.Username + "!";
else panelText += "Smasher!"; //I GOT THIS ELSE BLOCK !
if (GameStateManager.UserTexture != null)
GUI.DrawTexture( (new Rect(8,10, 150, 150)), GameStateManager.UserTexture);
GUI.Label( (new Rect(179 , 11, 287, 160)), panelText, MenuSkin.GetStyle("text_only"));
}
这是我的gamestatemanager.username 为空...我只想知道为什么我的gamestatemanager.username 为空,如何获取一些数据来填充它.. 我已按照步骤在此链接中填写gamestatemanager.username 我的错误在哪里顺便提一句 ?任何人都可以帮忙吗?