Exemple #1
0
    private void init(string title, string message, string yes, string no)
    {
                #if UNITY_WP8
        MNWP8Dialog dialog = MNWP8Dialog.Create(title, message);
        dialog.OnComplete += OnCompleteListener;
                #endif


                #if UNITY_IPHONE
        MNIOSDialog dialog = MNIOSDialog.Create(title, message, yes, no);
        dialog.OnComplete += OnCompleteListener;
                #endif

                #if UNITY_ANDROID
        MNAndroidDialog dialog = MNAndroidDialog.Create(title, message, yes, no);
        dialog.OnComplete += OnCompleteListener;
                #endif
    }
    private void init(string title, string message, string yes, string no)
    {
                #if UNITY_WP8 || UNITY_METRO
        MNWP8Dialog dialog = MNWP8Dialog.Create(title, message);
        dialog.addEventListener(BaseEvent.COMPLETE, OnCompleteListener);
                #endif


                #if UNITY_IPHONE
        MNIOSDialog dialog = MNIOSDialog.Create(title, message, yes, no);
        dialog.addEventListener(BaseEvent.COMPLETE, OnCompleteListener);
                #endif

                #if UNITY_ANDROID
        MNAndroidDialog dialog = MNAndroidDialog.Create(title, message, yes, no);
        dialog.addEventListener(BaseEvent.COMPLETE, OnCompleteListener);
                #endif
    }