PO/Assets/Inventory/PlaceEquipment.cs

24 lines
602 B
C#

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()
{
//Óðàààààà, âñå ðàáîòàåò
Debug.Log("CLICK ONE");
if (GetComponentInChildren<Image>().sprite.name != Inventory.main.imagePlug.name && equipmentNum != -1)
{
Debug.Log("CLICK TWO");
Inventory.main.lastCardNum = equipmentNum;
EquipmentInfo.main.CardAbout(equipmentNum);
}
}
}