2022-01-16 23:20:47 +03:00
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
using UnityEngine.UI;
|
|
|
|
|
|
|
|
|
|
public class PlaceEquipment : MonoBehaviour
|
|
|
|
|
{
|
|
|
|
|
public int currentNum;
|
|
|
|
|
public int equipmentNum = -1;
|
|
|
|
|
|
|
|
|
|
public void EquipmentAbout()
|
|
|
|
|
{
|
|
|
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2022-01-20 11:44:38 +03:00
|
|
|
|
Debug.Log("CLICK ONE");
|
2022-01-17 17:49:27 +03:00
|
|
|
|
if (GetComponentInChildren<Image>().sprite.name != Inventory.main.imagePlug.name && equipmentNum != -1)
|
2022-01-17 23:09:07 +03:00
|
|
|
|
{
|
2022-01-20 11:44:38 +03:00
|
|
|
|
Debug.Log("CLICK TWO");
|
2022-01-17 23:09:07 +03:00
|
|
|
|
Inventory.main.lastCardNum = equipmentNum;
|
2022-01-17 17:49:27 +03:00
|
|
|
|
EquipmentInfo.main.CardAbout(equipmentNum);
|
2022-01-17 23:09:07 +03:00
|
|
|
|
}
|
2022-01-16 23:20:47 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|