Ejemplo n.º 1
0
 /// <summary> Shows the given popup with the given settings </summary>
 /// <param name="popup"> Target popup that needs to be shown </param>
 /// <param name="addToPopupQueue"> If the popup is added to the PopupQueue, it will be shown when its turn comes up. Until then it will remain hidden. </param>
 /// <param name="instantAction"> When shown, should the popup animate instantly? (in zero seconds) </param>
 /// <param name="targetCanvasName"> Sets a new UICanvas target by looking for an UICanvas with the given name (also re-parents the popup to it) </param>
 public static void ShowPopup(UIPopup popup, bool addToPopupQueue, bool instantAction, string targetCanvasName)
 {
     if (popup == null)
     {
         return;
     }
     popup.SetTargetCanvasName(targetCanvasName);
     ShowPopup(popup, addToPopupQueue, instantAction);
 }