Files
M-Gameton-06/Gameton-06/Assets/Gameton/Scripts/UI/PauseUI.cs

27 lines
540 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
namespace TON
{
public class PauseUI : UIBase
{
void OnEnable()
{
// 일시정지 시 게임 일시정지
Time.timeScale = 0f;
}
// 컨티뉴 버튼 선택 시
public void OnPressContinueButton()
{
// UI 숨김
UIManager.Hide<PauseUI>(UIList.PauseUI);
// 게임 재생
Time.timeScale = 1f;
}
}
}