1. 구글 개발자 콘솔에 들어가서 개발자 계정으로 변환한다(유로)
  2. 모바일 앱 빌드
    1. 키스토어가 필요(잊어버리지 않도록 조심) - 정식빌드용 설정
  3. 개발자콘솔에 업로드
  4. 인증키를 등록
    1. 인증키를 받았다고해서 등록된게 아니다 등록을 해줘야함
  5. 로그인에 필요한 정보를 모은다
  6. 유니티로 가서 정보 넣고 로그인

ld플레이어로 실행해서 로그인 확인해보기

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using GooglePlayGames;

public class MyLogin : MonoBehaviour
{
    [SerializeField]
    Text resultText;

    private void Start()
    {
       PlayGamesPlatform.DebugLogEnabled = true;
        PlayGamesPlatform.Activate();   //이걸 안하면 로그인이 작동안함
    }

    public void Login()
    {
        Social.localUser.Authenticate((bool success) =>
        {
            if (success)
            {
                resultText.text = $"{Social.localUser.userName}님 환영합니다.";
                resultText.text += $" ID : {Social.localUser.id}";
            }
            else resultText.text = "로그인 실패";
        });
    }
    public void Logout()
    {
        resultText.text = "로그아웃";

        var pgp = (PlayGamesPlatform)Social.Active;
        pgp.SignOut();
    }
    public void Register()
    {
        resultText.text = "회원가입을 하시겠습니까?";

    }
}