PlayGamesClientConfiguration 도대체 왜 빨간줄 긋는거임??
//
using UnityEngine;
using System.Collections;
using UnityEngine.SocialPlatforms;
using GooglePlayGames;
using GooglePlayGames.BasicApi;
using GooglePlayGames.BasicApi.SavedGame;
using System;
public class LogInManager : MonoBehaviour
{
// Start is called before the first frame update
private void Start()
{
// 구글 플레이 서비스에 로그인되어 있지 않으면 로그인 패널을 띄움
if (!IsAuthenticated()) PanelOn();
}
public void PanelOn()
{
//대충 로그인 패널 켜기
}
public void LoginFail()
{
//대충 로그인 실패
}
public void ToStartScene()
{
// 대충 로그인 성공
}
/// <summary>
/// 구글 플레이 서비스에 로그인이 되어있는지 확인하는 함수
/// </summary>
/// <returns></returns>
public static bool IsAuthenticated()
{
return Social.localUser.authenticated;
}
/// <summary>
/// 로그인 버튼을 눌렀을 때
/// </summary>
public void Start_Auth()
{
PlayGamesClientConfiguration config = new PlayGamesClientConfiguration.Builder().Build();
if (Social.localUser.authenticated) // GPGS 로그인 되어 있는 경우
{
}
else // GPGS 로그인이 되어 있지 않은 경우
{
Social.localUser.Authenticate((bool Success) =>
{
if (Success) //로그인 시도 성공
{
}
else //로그인 실패
{
}
});
}
}
}
여기서 PlayGamesClientConfiguration만 빨간줄 그어짐..
그냥 빌드 돌리고 에러목록 해당부분 복사해서 구글에 검색하셈 에러 로그도 아니고 빨간줄만으로 알수는 없을거 같은데
PlayGamesClientConfiguration 형식또는 네임스페이스를찾을 수 없데..
비주얼스튜디오던 코드던 마우스 갖다대면 뭐라고 뜰거아냐
아마도 저 클래스를 못 찾는거겠지
구니까.. 근데 저게 클래스 안만들어도
gpgs 패키지 받으면 그냥 저렇게만 써도 되는거 아냐?
https://firebase.google.com/docs/auth/unity/play-games?hl=ko
여기 메뉴얼에서 빠진거 있는지 확인해보셈
한번 해볼겡! 짱 고마워1