Exemple #1
0
        public static PopupMenu BuildPopupAlertMessage(PopupAlertMessageType type, object param = null)
        {
            PopupMenu popupMenu = null;

            switch (type)
            {
            case PopupAlertMessageType.LeaveGame:
                popupMenu = LeaveGame();
                break;

            case PopupAlertMessageType.AvatarPurchaseSuccessful:
                popupMenu = AvatarPurchaseSuccessFeedback((AvatarMetadata)param);
                break;

            case PopupAlertMessageType.AvatarPurchaseFailure:
                popupMenu = AvatarPurchaseFailureFeedback();
                break;
            }

            PopupHandler.Add(popupMenu);

            return(popupMenu);
        }
Exemple #2
0
 internal static void Remove(PopupMenu popupMenu)
 {
     toBeRemovedPopupList.Add(popupMenu);
 }