public void CallEvent() { bool ValidButton = true; switch (ButtonActionType) { case ButtonType.ShowBottomSmartBanner: AdMob_Manager.Instance.LoadBanner(GoogleMobileAds.Api.AdSize.SmartBanner, GoogleMobileAds.Api.AdPosition.Bottom, true); break; case ButtonType.HideBottomSmartBanner: AdMob_Manager.Instance.HideBanner(false); break; case ButtonType.ShowInterstitial: AdMob_Manager.Instance.ShowInterstitial(); break; case ButtonType.LogHelloEvent: Analytics.LogEvent("Hello", "World", "This is a test"); Analytics.LogEvent("Hello", "Office", "This is a test"); Analytics.LogEvent("Goodbye", "World"); Analytics.LogEvent("Hello", "World", "How's it going?"); Analytics.LogEvent("Hello", "World", 4); break; case ButtonType.GoogleAuth: Auth.AuthLogin(Auth.AuthType.Google); break; case ButtonType.TwitterAuth: Auth.AuthLogin(Auth.AuthType.Twitter); break; case ButtonType.FacebookAuth: Auth.AuthLogin(Auth.AuthType.Facebook); break; case ButtonType.EmailRegister: Auth.FirebaseRegister("*****@*****.**", "123456", false); break; case ButtonType.EmailSendVerification: Auth.FirebaseSendEmailVerification(); break; case ButtonType.EmailAuth: Auth.FirebaseLogin("*****@*****.**", "123456"); break; case ButtonType.UnAuth: Auth.UnLinkAuth(); break; case ButtonType.RefreshIAS: // N/A break; case ButtonType.SendInvite: Invites.SendInvite("Title here", "Message here", "Call to action", "http://www.website.com"); break; default: ValidButton = false; break; } if (ValidButton && DoHapticFeedback) { //JarLoader.DoHapticFeedback(1); } }