| | |
| | | |
| | | [SerializeField] Button autoBtn; |
| | | |
| | | |
| | | //其他功能入口 |
| | | [SerializeField] Button monthCardBtn; |
| | | |
| | | /// <summary> |
| | | /// 初始化组件 |
| | | /// </summary> |
| | |
| | | UIManager.Instance.OpenWindow<HeroPosWin>(); |
| | | }); |
| | | |
| | | autoBtn.AddListener(()=> |
| | | autoBtn.AddListener(() => |
| | | { |
| | | //测试拾取所有物品 |
| | | var items = PackManager.Instance.GetItems(PackType.DropItem); |
| | |
| | | } |
| | | if (dropindexs.Count > 0) |
| | | { |
| | | EquipModel.Instance.NotifyItemDrop(dropindexs, BattleManager.Instance.storyBattleField.battleRootNode.blueTeamNodeList[Random.Range(0,5)].GetComponent<RectTransform>()); |
| | | EquipModel.Instance.NotifyItemDrop(dropindexs, BattleManager.Instance.storyBattleField.battleRootNode.blueTeamNodeList[Random.Range(0, 5)].GetComponent<RectTransform>()); |
| | | dropindexs.Clear(); |
| | | } |
| | | }); |
| | | |
| | | |
| | | monthCardBtn.AddListener(() => |
| | | { |
| | | InvestModel.Instance.BuyInvest(InvestModel.monthCardType); |
| | | }); |
| | | } |
| | | |
| | |
| | | { |
| | | UpdatePlayerInfo(); |
| | | UpdateTask(); |
| | | RefreshRecharge(); |
| | | } |
| | | |
| | | protected override void OnPreOpen() |
| | |
| | | |
| | | } |
| | | |
| | | void RefreshRecharge() |
| | | { |
| | | monthCardBtn.SetActive(!InvestModel.Instance.IsInvested(InvestModel.monthCardType)); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 更新玩家信息 |
| | | /// </summary> |