Ejemplo n.º 1
0
 public void Show()
 {
             #if UNITY_EDITOR
     MNP_EditorTesting.Instance.ShowPopup(this.title, this.message, this.actions, dismissCallback);
             #elif UNITY_ANDROID
     MNAndroidAlert popup = MNAndroidAlert.Create(this.title, this.message, this.actions.Keys);
     popup.OnComplete += OnPopupCompleted;
     popup.Show();
             #elif UNITY_IOS
     MNIOSAlert popup = MNIOSAlert.Create(this.title, this.message, this.actions.Keys);
     popup.OnComplete += OnPopupCompleted;
     popup.Show();
             #endif
 }
Ejemplo n.º 2
0
    public void Show()
    {
        switch (Application.platform)
        {
        case RuntimePlatform.Android:
            MNAndroidAlert a_popup = MNAndroidAlert.Create(this.title, this.message, this.actions.Keys);
            a_popup.OnComplete += OnPopupCompleted;
            a_popup.Show();
            break;

        case RuntimePlatform.IPhonePlayer:
            MNIOSAlert i_popup = MNIOSAlert.Create(this.title, this.message, this.actions.Keys);
            i_popup.OnComplete += OnPopupCompleted;
            i_popup.Show();
            break;

        default:
            MNP_EditorTesting.Instance.ShowPopup(this.title, this.message, this.actions, dismissCallback);
            break;
        }
    }