|
|
|
@ -15,7 +15,7 @@ public class GoogleSignInManager : MonoBehaviour
|
|
|
|
|
public Bootstrapper bootstrapper;
|
|
|
|
|
public Button googleSignInButton;
|
|
|
|
|
public Button guestLoginButton;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void Awake()
|
|
|
|
|
{
|
|
|
|
|
configuration = new GoogleSignInConfiguration
|
|
|
|
@ -26,8 +26,14 @@ public class GoogleSignInManager : MonoBehaviour
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
GoogleSignIn.Configuration = configuration;
|
|
|
|
|
Application.quitting += SyncPlayerPrefsToPlayFabOnQuit;
|
|
|
|
|
OneSignal.Default.Initialize("3ee530aa-8613-485b-9cbd-0263727badc5");
|
|
|
|
|
Application.quitting += SyncPlayerPrefsToPlayFabOnQuit;
|
|
|
|
|
string ons_id = "";
|
|
|
|
|
#if UNITY_ANDROID
|
|
|
|
|
ons_id = GameConstants.OSN_Android;
|
|
|
|
|
#elif UNITY_IOS
|
|
|
|
|
ons_id = GameConstants.OSN_iOS;
|
|
|
|
|
#endif
|
|
|
|
|
OneSignal.Default.Initialize(ons_id);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Start()
|
|
|
|
|