using cfg.ActorCfg; using cfg.LevelCfg; using Framework; using Gameplay; using Gameplay.Common; using Gameplay.Level; using PhxhSDK; using System; using System.Collections.Generic; using System.Linq; using TMPro; using UnityEngine; using Button = UnityEngine.UI.Button; using Image = UnityEngine.UI.Image; public static class RewardHelper { } public class RewardForBeforeFightUI : Reward { bool isShowNum; public bool isStableReward; public RewardForBeforeFightUI(DataRewards data) : base(data) { isStableReward = data.RewardType == RewardType.Ensure; } } public class UI_LevelDetailController : UIWindow { //UI GameObj ///Auto Gen Start/// public Image Image_BG; public Button Button_Close; public TMP_Text Text_LevelNum; public TMP_Text Text_LevelName; public Image Image_Shadow; public Image Image_Misson; public Image Image_Weather; public Image Image_DayOrNight; public TMP_Text Text_DayOrNight; public Image Image_Seperate; public Image Image_weather; public TMP_Text Text_WeatherAndLand01; public Image Image_environment; public TMP_Text Text_WeatherAndLand02; public Image Image_Buff; public TMP_Text Text_Buff; public TMP_Text Text_GetReward; public TMP_Text Text_AlreadyGet; public TMP_Text Text_Sweep; public Image Image_SweepNum; public TMP_Text Text_Num; public Button Button_Minus; public Button Button_Plus; public Button Button_StartSweep; public Image Image_physicalBG; public Image Image_Physical; public TMP_Text Text_PhysicalNum; public TMP_Text Text_StartSweep; public Button Button_Cancel; public TMP_Text Text_Cancel; public Image Image_StartFight; public TMP_Text Text_StartFight; private LevelInfo _currLevelInfo; PhxhScrollView _mCurrentScrollView = null; private Button fightBtn; public List allRewards; //private int _currTeamIndex = -1; private Team _currTeam; private int _teamIndexMax; ///Auto Gen End/// // deal with input data public override void PreLoad(object data) { } // Use this for initialization public override void OnInit() { //bind UI GameObj UI_LevelDetailBinder.GetComponents(this); _mCurrentScrollView = GetComponent("Image_BG/RewardAndSweep/Text_GetReward/PhxhScrollView"); fightBtn = GetComponent