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().CardAbout(num); } }