Ejemplo n.º 1
0
        private void OnGenieNotLaunch()
        {
#if UNITY_ANDROID
            var dialog = new AndroidDialog.AlertDialogBuilder();
            dialog.SetMessage("Please launch the game from Genie.");
            dialog.SetPositiveButton("Okay", (int a) => { AndroidHelper.KillActivity(); });
            dialog.ShowAndDispose();
#endif
        }
Ejemplo n.º 2
0
        private void OnGenieNotInstalled()
        {
#if UNITY_ANDROID
            var dialog = new AndroidDialog.AlertDialogBuilder();
            dialog.SetMessage("Genie Services is not installed.\nPlease make sure it is installed before launching this game.");
            dialog.SetPositiveButton("Okay.", (int a) => { AndroidHelper.KillActivity(); });
            dialog.SetTitle("Unable to start.");
            dialog.ShowAndDispose();
#else
            CrashScreen.Create("Genie Services is not installed.\n\nPlease make sure Genie Services is installed on your device\nbefore launching this game.", true);
#endif
        }
Ejemplo n.º 3
0
    static public bool CheckInstalled()
    {
#if UNITY_ANDROID
        if (AndroidHelper.IsInstalled("org.enlearn.enlearnService"))
        {
            return(true);
        }

        var dialog = new AndroidDialog.AlertDialogBuilder();
        dialog.SetMessage("Enlearn Service is not installed.\nPlease make sure it is installed before launching this game.");
        dialog.SetPositiveButton("Okay.", (int a) => { AndroidHelper.KillActivity(); });
        dialog.SetTitle("Unable to start.");
        dialog.ShowAndDispose();

        return(false);
#else
        return(true);
#endif
    }