19 lines
487 B
C#
19 lines
487 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()
|
|
{
|
|
//Óðàààààà, âñå ðàáîòàåò
|
|
if (GetComponentInChildren<Image>().sprite.name != MainMenuScript.main.imagePlug.name && equipmentNum != -1)
|
|
Camera.main.GetComponent<EquipmentInfo>().CardAbout(equipmentNum);
|
|
}
|
|
|
|
}
|