public static UiPopupConfirm ShowPopupConfirm() { UiPopupConfirm popup = UiLayout.CreatePopup("Ui/PopupConfirm") as UiPopupConfirm; popup.Rotation = UnityEngine.Random.Range(-1f, 1f); popup.OnShowBegin += () => Quest.Instance.SetPause(true); popup.OnHideBegin += () => Quest.Instance.SetPause(false); return(popup); }
public static UiPopupAssignWorker ShowPopupAssignWorker(QuestBuilding building) { UiPopupAssignWorker popup = UiLayout.CreatePopup("Ui/PopupAssignWorker") as UiPopupAssignWorker; popup.SetBuilding(building); popup.OnShowBegin += () => Quest.Instance.SetPause(true); popup.OnHideBegin += () => Quest.Instance.SetPause(false); return(popup); }