jimmy tremblay-Bernier c1bf5a4ca1 initial commit
2022-03-12 22:04:30 -04:00

16 lines
395 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class StoreMenuUI : MonoBehaviour
{
public Button exitBtn;
// Start is called before the first frame update
void Start()
{
exitBtn.onClick.AddListener(() => GameObject.FindGameObjectWithTag("GameController").GetComponent<StoreManager>().CloseStore() );
}
}