| | |
| | | using System.Collections; |
| | | using System.Collections.Generic; |
| | | using UnityEngine; |
| | | using System.Linq; |
| | | using System; |
| | | |
| | | namespace Snxxz.UI |
| | | { |
| | |
| | | return; |
| | | } |
| | | |
| | | var info = new CA5C5_tagCMEquipPartStarUp(); |
| | | info.EquipPackIndex = (ushort)EquipSet.ClientPlaceToServerPlace(equipPosition); |
| | | info.CostEquipIndex = materialIndexs.ToArray(); |
| | | info.CostEquipID = materialItemIds.ToArray(); |
| | | info.CostEquipCnt = (byte)materialIndexs.Count; |
| | | Action sendInfo = () => |
| | | { |
| | | var info = new CA5C5_tagCMEquipPartStarUp(); |
| | | info.EquipPackIndex = (ushort)EquipSet.ClientPlaceToServerPlace(equipPosition); |
| | | info.CostEquipIndex = materialIndexs.ToArray(); |
| | | info.CostEquipID = materialItemIds.ToArray(); |
| | | info.CostEquipCnt = (byte)materialIndexs.Count; |
| | | GameNetSystem.Instance.SendInfo(info); |
| | | }; |
| | | |
| | | GameNetSystem.Instance.SendInfo(info); |
| | | if (starUpgradeProbability.value < 100) |
| | | { |
| | | ConfirmCancel.ShowPopConfirm( |
| | | Language.Get("Mail101"), |
| | | Language.Get("EquipStarUpgradePossibility"), |
| | | (bool ok) => |
| | | { |
| | | if (ok) |
| | | { |
| | | sendInfo(); |
| | | } |
| | | }); |
| | | } |
| | | else |
| | | { |
| | | sendInfo(); |
| | | } |
| | | } |
| | | |
| | | public void ResetOperateParams() |