|
|
@@ -14,8 +14,8 @@ namespace Fort23.Mono
|
|
|
private System.Action callBack;
|
|
|
|
|
|
List<SkipToWidget> skipToWidgets = new List<SkipToWidget>();
|
|
|
-
|
|
|
- LevelBattleCombatType levelBattleCombatType ;
|
|
|
+
|
|
|
+ LevelBattleCombatType levelBattleCombatType;
|
|
|
|
|
|
private void Init()
|
|
|
{
|
|
|
@@ -38,17 +38,14 @@ namespace Fort23.Mono
|
|
|
callBack?.Invoke();
|
|
|
callBack = null;
|
|
|
});
|
|
|
- Btn_Close2.onClick.AddListener(async() =>
|
|
|
+ Btn_Close2.onClick.AddListener(async () =>
|
|
|
{
|
|
|
await UIManager.Instance.HideUIUIPanel(this);
|
|
|
callBack?.Invoke();
|
|
|
callBack = null;
|
|
|
});
|
|
|
-
|
|
|
- Btn_cxtz.onClick.AddListener(() =>
|
|
|
- {
|
|
|
-
|
|
|
- });
|
|
|
+
|
|
|
+ Btn_cxtz.onClick.AddListener(() => { });
|
|
|
}
|
|
|
|
|
|
public async void CustomInit(bool isWin, System.Action callBack)
|
|
|
@@ -73,22 +70,26 @@ namespace Fort23.Mono
|
|
|
FailRoot.SetActive(true);
|
|
|
Text_Desc1.gameObject.SetActive(false);
|
|
|
|
|
|
- if (levelBattleCombatType.levelbattleConfig.ID == 1003 || levelBattleCombatType.levelbattleConfig.ID == 100004)
|
|
|
+ if (levelBattleCombatType.levelbattleConfig.ID == 1003 ||
|
|
|
+ levelBattleCombatType.levelbattleConfig.ID == 100004)
|
|
|
{
|
|
|
if (levelBattleCombatType.levelbattleConfig.ID == 1003)
|
|
|
{
|
|
|
- SkipToWidget skipToWidget1 = await UIManager.Instance.CreateGComponentForObject<SkipToWidget>(SkipToWidgetGam, null, SkipToContent);
|
|
|
+ SkipToWidget skipToWidget1 =
|
|
|
+ await UIManager.Instance.CreateGComponentForObject<SkipToWidget>(SkipToWidgetGam, null,
|
|
|
+ SkipToContent);
|
|
|
skipToWidget1.CustonInit(3);
|
|
|
skipToWidgets.Add(skipToWidget1);
|
|
|
skipToWidget1.OnClick = OnClick;
|
|
|
}
|
|
|
|
|
|
- SkipToWidget skipToWidget = await UIManager.Instance.CreateGComponentForObject<SkipToWidget>(SkipToWidgetGam, null, SkipToContent);
|
|
|
+ SkipToWidget skipToWidget =
|
|
|
+ await UIManager.Instance.CreateGComponentForObject<SkipToWidget>(SkipToWidgetGam, null,
|
|
|
+ SkipToContent);
|
|
|
skipToWidget.CustonInit(1);
|
|
|
skipToWidgets.Add(skipToWidget);
|
|
|
skipToWidget.OnClick = OnClick;
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -98,7 +99,7 @@ namespace Fort23.Mono
|
|
|
await UIManager.Instance.HideUIUIPanel(this);
|
|
|
callBack?.Invoke();
|
|
|
callBack = null;
|
|
|
- SkiptoHelper.Skipto(skipToWidget.SkiptoConfig.ID);
|
|
|
+ SkiptoHelper.Skipto(skipToWidget.SkiptoConfig.ID, true);
|
|
|
}
|
|
|
|
|
|
public static async CTask<BattleSettlementPanel> OpenPanel(bool isWin, System.Action callBack)
|