| | |
| | | using System.Collections.Generic; |
| | | using UnityEngine; |
| | | using UnityEngine.UI; |
| | | |
| | | public class ArenaChallengeWin : UIBase |
| | | { |
| | |
| | | [SerializeField] ImageEx imgMoneyIcon; |
| | | [SerializeField] TextEx txtMoneyCount; |
| | | [SerializeField] ScrollerController scrollerController; |
| | | [SerializeField] Button funPresetBtn; |
| | | |
| | | protected override void InitComponent() |
| | | { |
| | |
| | | if (!UIHelper.CheckMoneyCount(ArenaManager.Instance.currencyType, ArenaManager.Instance.currencyValue, 1)) |
| | | return; |
| | | ArenaManager.Instance.SendArenaMatch(true); |
| | | }); |
| | | |
| | | funPresetBtn.AddListener(()=> |
| | | { |
| | | FuncPresetManager.Instance.ClickBattlePreset((int)BattlePreSetType.Story); |
| | | }); |
| | | |
| | | } |
| | |
| | | txtFightPoint.text = UIHelper.ReplaceLargeArtNum(myFightPower); |
| | | imgMoneyIcon.SetIconWithMoneyType(ArenaManager.Instance.currencyType); |
| | | txtMoneyCount.text = UIHelper.ShowUseMoney(ArenaManager.Instance.currencyType, ArenaManager.Instance.currencyValue); |
| | | |
| | | funPresetBtn.SetActive(FuncPresetManager.Instance.IsPreShow()); |
| | | } |
| | | } |