|
@@ -100,7 +100,11 @@ public class ZMJKLayer : MonoBehaviour
|
|
|
|
|
|
ZhaMenIconCtrl tempIcon = Instantiate(zhaMenIconOri, zhaMenContent).GetComponent<ZhaMenIconCtrl>();
|
|
ZhaMenIconCtrl tempIcon = Instantiate(zhaMenIconOri, zhaMenContent).GetComponent<ZhaMenIconCtrl>();
|
|
tempIcon.Init(GlobalData.floorGateData.buYuan[tempIndex], $"补元:-{tempIndex + 1}#闸门",
|
|
tempIcon.Init(GlobalData.floorGateData.buYuan[tempIndex], $"补元:-{tempIndex + 1}#闸门",
|
|
- StaticLod.instance.GetStaticObj($"BY_ZM_{tempIndex + 1:00}"));
|
|
|
|
|
|
+ StaticLod.instance.GetStaticObj($"BY_ZM_{tempIndex + 1:00}"),
|
|
|
|
+ () =>
|
|
|
|
+ {
|
|
|
|
+ OpenZhaMenInfoPanel(0, tempIndex, tempItem);
|
|
|
|
+ });
|
|
zhaMenIconList.Add(tempIcon);
|
|
zhaMenIconList.Add(tempIcon);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -121,7 +125,10 @@ public class ZMJKLayer : MonoBehaviour
|
|
|
|
|
|
ZhaMenIconCtrl tempIcon = Instantiate(zhaMenIconOri, zhaMenContent).GetComponent<ZhaMenIconCtrl>();
|
|
ZhaMenIconCtrl tempIcon = Instantiate(zhaMenIconOri, zhaMenContent).GetComponent<ZhaMenIconCtrl>();
|
|
tempIcon.Init(GlobalData.floorGateData.taoKou[tempIndex], $"套口:-{tempIndex + 1}#闸门",
|
|
tempIcon.Init(GlobalData.floorGateData.taoKou[tempIndex], $"套口:-{tempIndex + 1}#闸门",
|
|
- StaticLod.instance.GetStaticObj($"TK_ZM_{tempIndex + 1:00}"));
|
|
|
|
|
|
+ StaticLod.instance.GetStaticObj($"TK_ZM_{tempIndex + 1:00}"), () =>
|
|
|
|
+ {
|
|
|
|
+ OpenZhaMenInfoPanel(1, tempIndex, tempItem);
|
|
|
|
+ });
|
|
zhaMenIconList.Add(tempIcon);
|
|
zhaMenIconList.Add(tempIcon);
|
|
}
|
|
}
|
|
|
|
|