17 lines
297 B
C#
17 lines
297 B
C#
using Michsky.UI.Heat;
|
|
using Obvious.Soap;
|
|
using UnityEngine;
|
|
|
|
public class UI_Modal_Exit : MonoBehaviour
|
|
{
|
|
public BoolVariable IsInGameMainMenuEnabled;
|
|
|
|
public void On_Hotkey_Press_Exit()
|
|
{
|
|
if (!IsInGameMainMenuEnabled.Value)
|
|
{
|
|
GetComponent<ModalWindowManager>().OpenWindow();
|
|
}
|
|
}
|
|
}
|