PlayGamesClientConfiguration config = new PlayGamesClientConfiguration.Builder().RequestServerAuthCode(false).Build();
중
PlayGamesClientConfiguration에 빨간줄 뜨는데 왜 그러는거야??
코드
using UnityEngine;
using System.Collections;
using UnityEngine.SocialPlatforms;
#if UNITY_ANDROID
using GooglePlayGames;
using GooglePlayGames.BasicApi;
using GooglePlayGames.BasicApi.SavedGame;
#endif
using System;
public class LogInManager : MonoBehaviour
private void Start()
{
// 구글 플레이 서비스에 로그인되어 있지 않으면 로그인 패널을 띄움
if (!IsAuthenticated()) PanelOn();
}
public static bool IsAuthenticated()
{
return Social.localUser.authenticated;
}
public void Start_Auth()
{
PlayGamesClientConfiguration config = new PlayGamesClientConfiguration.Builder().RequestServerAuthCode(false).Build();
if (Social.localUser.authenticated) // GPGS 로그인 되어 있는 경우
{
}
else // GPGS 로그인이 되어 있지 않은 경우
{
Social.localUser.Authenticate((bool Success) =>
{
if (Success) //로그인 시도 성공
{
}
else //로그인 실패
{
}
});
}
}
0
0
0
그거 GPGS버전 문제일걸
앗...