void OnSignInSucceeded(int origin) { Logger.d("GHM got onSignInSucceeded, origin " + origin + ", notifying AndroidClient."); if (origin == ORIGIN_MAIN_ACTIVITY) { mConnectionState = ConnectionState.Connected; mAndroidClient.OnSignInSucceeded(); } else if (origin == ORIGIN_SIGN_IN_HELPER_ACTIVITY) { // the sign in helper Activity succeeded sign in, so we are ready to // start setting up our GameHelper. Logger.d("GHM got helper's OnSignInSucceeded, so calling GameHelper.onStart"); mConnectionState = ConnectionState.Connecting; mGameHelper.Call("onStart", mAndroidClient.GetActivity()); } }
void OnSignInSucceeded(int origin) { Logger.d("GHM got onSignInSucceeded, origin " + origin + ", notifying AndroidClient."); if (origin == ORIGIN_MAIN_ACTIVITY) { mAndroidClient.OnSignInSucceeded(); } else if (origin == ORIGIN_SIGN_IN_HELPER_ACTIVITY) { // the sign in helper Activity succeeded sign in Logger.d("GHM got helper's OnSignInSucceeded."); // we don't need to do anything here because as soon as the sign in helper // activity is finished, we will get OnResume() and then we'll try to // reconnect our GameHelper, which will result in a success. // DO NOT CALL mGameHelper.Call("onStart", mAndroidClient.GetActivity()) HERE. } }