Unity/수업 내용

[GPGS] 업적 달성

JSH1 2021. 12. 8. 12:23

https://github.com/playgameservices/play-games-plugin-for-unity

 

GitHub - playgameservices/play-games-plugin-for-unity: Google Play Games plugin for Unity

Google Play Games plugin for Unity. Contribute to playgameservices/play-games-plugin-for-unity development by creating an account on GitHub.

github.com


 

Social.ReportProgress(GPGSIds.achievement_welcome, 100f, null);

 

단계별 업적이 체크돼있지 않아 두 번째 인수(진행도) 에 100f 미만의 값을 넣으면 아무 반응도 없다


 

using GooglePlayGames;

PlayGamesPlatform.Instance.IncrementAchievement(GPGSIds.achievement, 1, null);

 

1회 실행

 

15회 실행

 

30회 실행

설명서에는 진행도가 있는 업적의 경우 정확도를 위해 Social.ReportProgress 사용을 권하지 않는다