コード例 #1
0
ファイル: UM_Leaderboard.cs プロジェクト: sonxoans2/TapJump
	public UM_Score GetScore(int rank, UM_TimeSpan scope, UM_CollectionType collection) {
		UM_Score umScore = null;
		
		if (IsValid) {
			switch (Application.platform) {
			case RuntimePlatform.Android:
				GPScore gp = gp_Leaderboard.GetScore(rank, scope.Get_GP_TimeSpan(), collection.Get_GP_CollectionType());
				if (gp != null) {
					umScore = new UM_Score(null, gp);
				}
				break;
			case RuntimePlatform.IPhonePlayer:
				GK_Score gk = gk_Leaderboard.GetScore(rank, scope.Get_GK_TimeSpan(), collection.Get_GK_CollectionType());
				if (gk != null) {
					umScore = new UM_Score(gk, null);
				}
				break;
			}
		}
		
		return umScore;
	}