예제 #1
0
        private void leaderboardsAndAchievementsButtons()
        {
            GUILayout.Label("Leaderboards");

            if (GUILayout.Button("Show Leaderboard"))
            {
                PlayGameServices.showLeaderboard("CgkI_-mLmdQEEAIQBQ");
            }


            if (GUILayout.Button("Show All Leaderboards"))
            {
                PlayGameServices.showLeaderboards();
            }


            if (GUILayout.Button("Submit Score"))
            {
                PlayGameServices.submitScore("CgkI_-mLmdQEEAIQBQ", 566);
            }


            if (GUILayout.Button("Load Raw Score Data"))
            {
                PlayGameServices.loadScoresForLeaderboard("CgkI_-mLmdQEEAIQBQ", GPGLeaderboardTimeScope.AllTime, false, false);
            }


            if (GUILayout.Button("Get Leaderboard Metadata"))
            {
                var info = PlayGameServices.getAllLeaderboardMetadata();
                Prime31.Utils.logObject(info);
            }


            if (GUILayout.Button("Get Achievement Metadata"))
            {
                var info = PlayGameServices.getAllAchievementMetadata();
                Prime31.Utils.logObject(info);
            }


            if (GUILayout.Button("Reload All Metadata"))
            {
                PlayGameServices.reloadAchievementAndLeaderboardData();
            }


            if (GUILayout.Button("Show Share Dialog"))
            {
                PlayGameServices.showShareDialog("I LOVE this game!", "http://prime31.com");
            }
        }