|
|
@@ -1,6 +1,9 @@
|
|
|
using System.Collections.Generic;
|
|
|
using Core.Audio;
|
|
|
using Fort23.Core;
|
|
|
+using GameLogic.Combat;
|
|
|
+using GameLogic.Combat.CombatType;
|
|
|
+using GameUI.Combat;
|
|
|
using Mono.Utility;
|
|
|
|
|
|
namespace Fort23.Mono
|
|
|
@@ -11,6 +14,8 @@ namespace Fort23.Mono
|
|
|
private System.Action callBack;
|
|
|
|
|
|
List<SkipToWidget> skipToWidgets = new List<SkipToWidget>();
|
|
|
+
|
|
|
+ LevelBattleCombatType levelBattleCombatType ;
|
|
|
|
|
|
private void Init()
|
|
|
{
|
|
|
@@ -49,6 +54,8 @@ namespace Fort23.Mono
|
|
|
public async void CustomInit(bool isWin, System.Action callBack)
|
|
|
{
|
|
|
this.callBack = callBack;
|
|
|
+ levelBattleCombatType =
|
|
|
+ CombatDrive.Instance.CombatController.CombatTypeBasic as LevelBattleCombatType;
|
|
|
AudioManager.Instance.PauseBGM();
|
|
|
if (isWin)
|
|
|
{
|
|
|
@@ -65,6 +72,15 @@ namespace Fort23.Mono
|
|
|
WinRoot.SetActive(false);
|
|
|
FailRoot.SetActive(true);
|
|
|
Text_Desc1.gameObject.SetActive(false);
|
|
|
+
|
|
|
+ if (levelBattleCombatType.levelbattleConfig.ID == 1003 || levelBattleCombatType.levelbattleConfig.ID == 100004)
|
|
|
+ {
|
|
|
+ SkipToWidget skipToWidget = await UIManager.Instance.CreateGComponentForObject<SkipToWidget>(SkipToWidgetGam, null, SkipToContent);
|
|
|
+ skipToWidget.CustonInit(1);
|
|
|
+ skipToWidgets.Add(skipToWidget);
|
|
|
+ skipToWidget.OnClick = OnClick;
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
|