Ejemplo n.º 1
0
 private void Show(DialogBox dialogBox)
 {
     visible        = true;
     this.dialogBox = dialogBox;
 }
Ejemplo n.º 2
0
 private void Show(DialogBox dialogBox)
 {
     visible = true;
     this.dialogBox = dialogBox;
 }
 protected bool ValidateMandatoryParameter(string parameter, DialogBox.TriggerCondition condition)
 {
     if (parameter == null && (condition == DialogBox.TriggerCondition.PARAMETER_COMPLETED ||
         condition == DialogBox.TriggerCondition.PARAMETER_FAILED))
     {
         throw new ArgumentException("Required if condition is PARAMETER_COMPLETED or PARAMETER_FAILED.");
     }
     return true;
 }
Ejemplo n.º 4
0
            public static void DisplayMessage(DialogBox dialogBox)
            {
                DialogBoxGUI gui = MapView.MapCamera.gameObject.GetComponent<DialogBoxGUI>();
                if (gui == null)
                {
                    LoggingUtil.LogVerbose(typeof(DialogBox), "Adding DialogBoxGUI");
                    gui = MapView.MapCamera.gameObject.AddComponent<DialogBoxGUI>();
                }

                gui.Show(dialogBox);
            }