コード例 #1
0
ファイル: Genie.cs プロジェクト: PWLPavan/Pavan
        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
        }
コード例 #2
0
ファイル: Genie.cs プロジェクト: PWLPavan/Pavan
        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
        }
コード例 #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
    }