|
|
@@ -44,6 +44,12 @@ namespace Fort23.Mono
|
|
|
Btn_Close.onClick.AddListener(() => { UIManager.Instance.HideUIUIPanel(this); });
|
|
|
Btn_Affirm.onClick.AddListener(() =>
|
|
|
{
|
|
|
+ if (!PlayerManager.Instance.BagController.IsEnough(breakthrough.itemId, 1))
|
|
|
+ {
|
|
|
+ ItemSourcePanel.OpenPanel(itemConfig.ID);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
this.callBack?.Invoke();
|
|
|
EventManager.Instance.Dispatch(CustomEventType.RefenceBreakthrough, null);
|
|
|
UIManager.Instance.HideUIUIPanel(this);
|
|
|
@@ -91,7 +97,7 @@ namespace Fort23.Mono
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- Btn_Affirm.gameObject.SetActive(false);
|
|
|
+ Btn_Affirm.gameObject.SetActive(true);
|
|
|
Btn_Cancel.gameObject.SetActive(true);
|
|
|
Text_NoEnough.gameObject.SetActive(true);
|
|
|
}
|