/* * 서버 초기화 */ void Awake() { if (instance != null) { Destroy(instance); } instance = this; DontDestroyOnLoad(gameObject); #if UNITY_ANDROID PlayGamesClientConfiguration config = new PlayGamesClientConfiguration .Builder() .RequestServerAuthCode(false) .RequestIdToken() .Build(); PlayGamesPlatform.InitializeInstance(config); PlayGamesPlatform.DebugLogEnabled = true; PlayGamesPlatform.Activate(); #endif isLogin = true; Backend.Initialize(() => { if (Backend.IsInitialized) { // 비동기 함수 큐 초기화 Debug.Log("뒤끝 초기화 성공"); if (IsInitialize == false) { Debug.Log("큐 초기화 성공"); StartSendQueue(true); } } else { Debug.Log("뒤끝 초기화 실패"); } }); }
void Awake() { instance = this; }