PO/Assets/Scripts/MainMenuScripts/EquipmentButton.cs

15 lines
303 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class EquipmentButton : MonoBehaviour
{
public int num;
public void OnClick()
{
MainMenuScript.main.lastCardNum = num;
Camera.main.GetComponent<EquipmentInfo>().CardAbout(num);
}
}