1. ๊ณ ๋ผ๋ ์ ๋ํฐ LoginWithCustomIDRequest ์ฌ์ฉ
var request = new LoginWithCustomIDRequest { CustomId = "GettingStartedGuide", CreateAccount = true };
PlayFabClientAPI.LoginWithCustomID(request, OnLoginSuccess, OnLoginFailure);
2. ๊ทธ๋ฅ ์ธํฐ๋ท ๊ฒ์ํ๋ค๊ฐ ๋์ด
PlayFabClientAPI.LoginWithAndroidDeviceID(new LoginWithAndroidDeviceIDRequest() {
CreateAccount = true,
AndroidDeviceId = SystemInfo.deviceUniqueIdentifier
}
1๋ฒ์ ๊ฒฝ์ฐ "GettingStartedGuide"๋ ์์๋ก ๋ถ์ฌํ๋๊ฑฐ๋๊น ๊ตฌ๊ธ, ํ์ด์ค๋ถ ๋ฑ๋ฑ์ผ๋ก ๋ฐ๊ฟ์ ๊ตฌ๊ธ, ํ์ด์ค๋ถ ๋ก๊ทธ์ธ ๊ตฌํํ๊ณ
2๋ฒ์ ๊ฒฝ์ฐ ๊ธฐ๊ธฐID๋ก ๋ก๊ทธ์ธ์ด๋๊น ๊ฒ์คํธ ๋ก๊ทธ์ธ์ผ๋ก ํ๋ฉด ๋๋๊ฑฐ์ง????
////
์ด๋ ๊ฒ ํด๋ ๋๋๊ฑฐ ๋ง์ง...?
public void Login()
{
PlayFabClientAPI.LoginWithAndroidDeviceID(new LoginWithAndroidDeviceIDRequest()
{
CreateAccount = true,
AndroidDeviceId = SystemInfo.deviceUniqueIdentifier
}, result => {
Debug.Log("Logged in");
//๋์ถฉ ๋ก๊ทธ์ธ ํ ๋ค ์คํ
}, error => Debug.LogError(error.GenerateErrorReport()));
}
๋ ๊ณ ๋ฏผ์ค์ธ๊ฒ ์๋๋ก๊ทธ์ธ์ ๋ฃ์๊น ๊ณ ๋ฏผ์ค์ ์๋ง if(๋ก๊ทธ์ธ ํ์ ์์ผ๋ฉด){๊ทธ ๋ฐฉ๋ฒ์ผ๋ก ๋ก๊ทธ์ธ}์ด๋ ๊ฒ ๊ตฌํํ ๋ฏ
PlayFabClientAPI.LoginWithGoogleAccount ์ผ๋ก gpgs์์ GetServerAuthCode ๋ก ์ธ์ฆ์ฝ๋ ๋ฐ์์ ๋ก๊ทธ์ธํจ
https://docs.microsoft.com/ko-kr/gaming/playfab/features/authentication/platform-specific-authentication/google-sign-in-unity
ใณใณ ์ ๊ทธ๋ฆฌ๊ณ ๊ตฌ๊ธ, ํ๋ถ์ SDK๋ฐ๋ก ์์ด์ ๊ทธ๊ฑฐ ๋ฐ๊ณ ํด์ผ๋๋๋ผ
๊ตฌ๊ธ์ด๋ ํ๋ถ๊ฐ์ ์๋ํํฐ๋ก ๋ก๊ทธ์ธํ๋ค์ ๋๋ฐ์ด์ค ์์ด๋ ๋งํฌ์์ผ์ ์๋๋ก๊ทธ์ธ๋๊ฒ ๋ง๋ค๊ธฐ๋ ํจ