Beispiel #1
0
    public void OnGUI()
    {
        string debugStr = "Initialized: " + Kongregate.IsInitialized().ToString() + "\n";

        debugStr = debugStr + "UserId: " + Kongregate.GetUserId() + "\n";
        debugStr = debugStr + "UserName: "******"\n";
        debugStr = debugStr + "GameAuthToken: " + Kongregate.GetGameAuthToken() + "\n";
        debugStr = debugStr + "Logs:\n" + Kongregate.GetLog();
        GUIStyle style = new GUIStyle();

        style.wordWrap      = true;
        style.stretchHeight = false;
        style.stretchWidth  = false;
        GUI.Box(new Rect(10, 10, 500, 500), debugStr, style);
    }
Beispiel #2
0
 public void OnUserInfoReceived()
 {
     userDataText.text = Kongregate.GetUserId() + ", " + Kongregate.GetUserName() + ", " + Kongregate.GetGameAuthToken();
 }