| | |
| | | public void Display(RoleEquipType equipType)
|
| | | {
|
| | | this.equipType = equipType;
|
| | | var item = packModel.GetItemByIndex(PackType.Equip, EquipSet.ClientPlaceToServerPlace(new Int2(0, (int)equipType)));
|
| | | var packIndex = EquipSet.ClientPlaceToServerPlace(new Int2(0, (int)equipType));
|
| | | var item = packModel.GetItemByIndex(PackType.Equip, packIndex);
|
| | | if (item == null)
|
| | | {
|
| | | m_ItemCell.gameObject.SetActive(false);
|
| | |
| | |
|
| | | private void AddEqup()
|
| | | {
|
| | | var item = packModel.GetItemByIndex(PackType.Equip, (int)equipType);
|
| | | var packIndex = EquipSet.ClientPlaceToServerPlace(new Int2(0, (int)equipType));
|
| | | var item = packModel.GetItemByIndex(PackType.Equip, packIndex);
|
| | | if (item != null)
|
| | | {
|
| | | return;
|
| | |
| | |
|
| | | private void ShowEquipTip()
|
| | | {
|
| | | var item = packModel.GetItemByIndex(PackType.Equip, (int)equipType);
|
| | | var packIndex = EquipSet.ClientPlaceToServerPlace(new Int2(0, (int)equipType));
|
| | | var item = packModel.GetItemByIndex(PackType.Equip, packIndex);
|
| | | if (item == null)
|
| | | {
|
| | | return;
|