Social.CreateAchievement Manual     Reference     Scripting  
Scripting > Runtime Classes > Social
Social.CreateAchievement

static function CreateAchievement () : IAchievement

Description

Create an IAchievement instance

IAchievement achievement = Social.CreateAchievement();
achievement.id = "Achievement01";
achievement.progressCompleted = 100.0;
achievement.ReportProgress( result => {
if (result)
Debug.Log ("Successfully reported progress");
else
Debug.Log ("Failed to report progress");
});