private void OnClickableMenuClosed(object sender, EventArgsClickableMenuClosed e) { Utils.DebugLog(e.PriorMenu.GetType().ToString() + " menu closed."); if (currentGiftHelper != null) { Utils.DebugLog("Closing current helper: " + currentGiftHelper.GetType().ToString()); UnsubscribeEvents(); currentGiftHelper.OnClose(); } }
private void OnClickableMenuClosed(IClickableMenu priorMenu) { Utils.DebugLog(previousMenu.GetType().ToString() + " menu closed."); if (currentGiftHelper != null) { Utils.DebugLog("[OnClickableMenuClosed] Closing current helper: " + currentGiftHelper.GetType().ToString()); UnsubscribeEvents(); currentGiftHelper.OnClose(); } }