public void Authenticate() { Debug.Log("Authenticate"); #if UNITY_IOS socialService = new GameCenterService(); #endif #if UNITY_ANDROID && GOOGLE_PLAY_GAMES_ENABLED socialService = new GooglePlayService(); ((GooglePlayService)socialService).Init(); #endif if (socialService != null) { socialService.Authenticate(); } }