Notice
Recent Posts
Recent Comments
Link
스토리지
NOX 구글로그인 확인하기 본문
https://github.com/playgameservices/play-games-plugin-for-unity
playgameservices/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
Unity만 로그보기 : adb logcat -s Unity
using GooglePlayGames;
using GooglePlayGames.BasicApi;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.SocialPlatforms;
public class App : MonoBehaviour
{
public Text txtVersion;
void Start()
{
this.txtVersion.text = Application.version;
Debug.Log("==========================> Init GPGS");
PlayGamesClientConfiguration config = new PlayGamesClientConfiguration.Builder().EnableSavedGames().Build();
PlayGamesPlatform.InitializeInstance(config);
PlayGamesPlatform.DebugLogEnabled = true;
PlayGamesPlatform.Activate();
Debug.Log("==========================> Autheticate");
PlayGamesPlatform.Instance.Authenticate(SignInInteractivity.CanPromptAlways, (result) => {
// handle results
Debug.Log("==========================> " + result);
});
}
}
'Unity > 유니티 기본' 카테고리의 다른 글
[07.05] 좀비 서바이벌 만들기 개요 (0) | 2021.07.05 |
---|---|
[06.24] 네이버 로그인 연동 (0) | 2021.06.24 |
[06.17] SNS 로그인 - GPGS Unity 세팅 (0) | 2021.06.17 |
유니티는 Visual Studio Code를 사용하자 (0) | 2021.05.04 |
[4.30] LobbyScene R&D (0) | 2021.04.30 |
Comments