Degulleo3D/Assets/LYM/Scripts/PauseButton.cs

14 lines
351 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PauseButton : MonoBehaviour
{
public void OnClicked()
{
//todo: 게임 일시정지 필요
var menuPanel = GameManager.Instance.PanelManager.GetPanel("MenuPanel");
menuPanel.GetComponent<MenuPanelController>().Show();
}
}