/// <summary> /// Opens the Dialog. /// </summary> /// <param name="uip">Dialog to open.</param> /// <param name="closeMethod">Close Method used by this dialog </param> public void OpenDialog(UIDialog uid, UIDialog.CloseDialogMethod closeMethod = null){ // Setup the last screen var if (uid != this.CurrentDialog) { this.LastUIDialog = this.CurrentDialog; } //Debug.Log ("UIScreenManager.OpenScreen - "+uis.name); this.CurrentDialog = uid; this.CloseAllDialog (); this.ShowDialog (); uid.OpenDialog(closeMethod); }