Ejemplo n.º 1
0
 static void ResetObject(UIBase ui)
 {
     //ダイアログの場合、UIRootCanvas.mainにキャッシュ.
     if (ui is UIScreen)
     {
         (ui as UIScreen).dialogs.Clear();
     }
     else if (ui is UIDialog)
     {
         UIDialog dialog = ui as UIDialog;
         if (dialog && dialog.screen)
         {
             dialog.screen.dialogs.Remove(dialog);
             dialog.screen = null;
         }
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Closes the dialog.
 /// </summary>
 /// <returns>The dialog.</returns>
 /// <param name="dialog">Dialog.</param>
 public static Coroutine CloseDialog(UIDialog dialog)
 {
     return(instance.StartCoroutine(CoHide(dialog, false, true)));
 }