|
@@ -13,6 +13,7 @@ namespace Fort23.Mono
|
|
|
public partial class WidgetItem : ItemWidgetBasic
|
|
|
{
|
|
|
public ItemInfo itemInfo;
|
|
|
+ public bool isClick = false;
|
|
|
|
|
|
|
|
|
private void Init()
|
|
@@ -31,6 +32,8 @@ namespace Fort23.Mono
|
|
|
{
|
|
|
Btn_WidgetItem.onClick.AddListener(() =>
|
|
|
{
|
|
|
+ if(!isClick)
|
|
|
+ return;
|
|
|
if (itemInfo.config.associateID == 3)
|
|
|
{
|
|
|
|
|
@@ -50,8 +53,9 @@ namespace Fort23.Mono
|
|
|
}
|
|
|
|
|
|
|
|
|
- public void InitWidget(ItemInfo itemInfo)
|
|
|
+ public void InitWidget(ItemInfo itemInfo,bool isclick = true)
|
|
|
{
|
|
|
+ this.isClick = isclick;
|
|
|
this.itemInfo = itemInfo;
|
|
|
|
|
|
icon.gameObject.SetActive(true);
|
|
@@ -71,6 +75,7 @@ namespace Fort23.Mono
|
|
|
|
|
|
public void ShowWenhao()
|
|
|
{
|
|
|
+ isClick = false;
|
|
|
Icon_WenHao.gameObject.SetActive(true);
|
|
|
icon.gameObject.SetActive(false);
|
|
|
Text_Count.gameObject.SetActive(false);
|