Degulleo3D/Assets/LYM/Scripts/PauseButton.cs

13 lines
308 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PauseButton : MonoBehaviour
{
public void OnClicked()
{
var menuPanel = GameManager.Instance.PanelManager.GetPanel("MenuPanel");
menuPanel.GetComponent<MenuPanelController>().Show();
}
}