C# Class GameCenterSingleton, swip3

Exibir arquivo Open project: unit9/swip3 Class Usage Examples

Public Methods

Method Description
AddAchievementProgress ( string achievementID, float percentageToAdd ) : bool
GameCenterSingleton ( ) : System
Initialize ( ) : void
IsUserAuthenticated ( ) : bool
ReportAchievementProgress ( string achievementID, float progressCompleted ) : bool
ReportScore ( long score, string leaderBoardID ) : void
ResetAchievements ( ) : void
ShowAchievementUI ( ) : void
ShowLeaderboardUI ( ) : void

Private Methods

Method Description
GetAchievement ( string achievementID ) : IAchievement
IsAchievementComplete ( string achievementID ) : bool
LoadAchievements ( ) : void
ProcessAuthentication ( bool success ) : void
ProcessLoadedAchievements ( IAchievement achievements ) : void
ResetAchievementsHandler ( bool status ) : void

Method Details

AddAchievementProgress() public method

public AddAchievementProgress ( string achievementID, float percentageToAdd ) : bool
achievementID string
percentageToAdd float
return bool

GameCenterSingleton() public method

public GameCenterSingleton ( ) : System
return System

Initialize() public method

public Initialize ( ) : void
return void

IsUserAuthenticated() public method

public IsUserAuthenticated ( ) : bool
return bool

ReportAchievementProgress() public method

public ReportAchievementProgress ( string achievementID, float progressCompleted ) : bool
achievementID string
progressCompleted float
return bool

ReportScore() public method

public ReportScore ( long score, string leaderBoardID ) : void
score long
leaderBoardID string
return void

ResetAchievements() public method

public ResetAchievements ( ) : void
return void

ShowAchievementUI() public method

public ShowAchievementUI ( ) : void
return void

ShowLeaderboardUI() public method

public ShowLeaderboardUI ( ) : void
return void