Пример #1
0
    // Loads scores for the given leaderboard. Fires the loadScoresFailed/Succeeded event when complete.
    public static void loadScoresForLeaderboard(string leaderboardId, GPGLeaderboardTimeScope timeScope, bool isSocial, bool personalWindow)
    {
//		if( Application.platform != RuntimePlatform.Android )
//			return;
//
//		_plugin.Call( "loadScoresForLeaderboard", leaderboardId, (int)timeScope, isSocial, personalWindow );
    }
Пример #2
0
    // Shows the requested leaderboard. timeScope is not supported on Android and here only for API compatibility with iOS.
    public static void showLeaderboard(string leaderboardId, GPGLeaderboardTimeScope timeScope = GPGLeaderboardTimeScope.AllTime)
    {
//		if( Application.platform != RuntimePlatform.Android )
//			return;
//
//		_plugin.Call( "showLeaderboard", leaderboardId );
    }
Пример #3
0
        // Loads the current players score for the given leaderboard. Fires the loadCurrentPlayerLeaderboardScoreSucceeded/FailedEvent when complete.
        public static void loadCurrentPlayerLeaderboardScore(string leaderboardId, GPGLeaderboardTimeScope timeScope, bool isSocial)
        {
            if (Application.platform != RuntimePlatform.Android)
            {
                return;
            }

            _plugin.Call("loadCurrentPlayerLeaderboardScore", leaderboardId, (int)timeScope, isSocial);
        }
		// Loads the current players score for the given leaderboard. Fires the loadCurrentPlayerLeaderboardScoreSucceeded/FailedEvent when complete.
		public static void loadCurrentPlayerLeaderboardScore( string leaderboardId, GPGLeaderboardTimeScope timeScope, bool isSocial )
		{
			if( Application.platform != RuntimePlatform.Android )
				return;

			_plugin.Call( "loadCurrentPlayerLeaderboardScore", leaderboardId, (int)timeScope, isSocial );
		}
		// Loads scores for the given leaderboard. Fires the loadScoresFailed/Succeeded event when complete.
		public static void loadScoresForLeaderboard( string leaderboardId, GPGLeaderboardTimeScope timeScope, bool isSocial, bool personalWindow )
		{
			if( Application.platform != RuntimePlatform.Android )
				return;

			_plugin.Call( "loadScoresForLeaderboard", leaderboardId, (int)timeScope, isSocial, personalWindow );
		}
Пример #6
0
	// Loads scores for the given leaderboard. Fires the loadScoresFailed/Succeeded event when complete.
	public static void loadScoresForLeaderboard( string leaderboardId, GPGLeaderboardTimeScope timeScope, bool isSocial, bool personalWindow )
	{
		if( Application.platform == RuntimePlatform.IPhonePlayer )
			_gplayLoadScoresForLeaderboard( leaderboardId, (int)timeScope, isSocial, personalWindow );
	}
Пример #7
0
	// Shows the requested leaderboard and time scope
	public static void showLeaderboard( string leaderboardId, GPGLeaderboardTimeScope timeScope )
	{
		if( Application.platform == RuntimePlatform.IPhonePlayer )
			_gplayShowLeaderboard( leaderboardId, (int)timeScope );
	}
	// Shows the requested leaderboard. timeScope is not supported on Android and here only for API compatibility with iOS.
	public static void showLeaderboard( string leaderboardId, GPGLeaderboardTimeScope timeScope = GPGLeaderboardTimeScope.AllTime )
	{
//		if( Application.platform != RuntimePlatform.Android )
//			return;
//
//		_plugin.Call( "showLeaderboard", leaderboardId );
	}