2022-03-02 11:51:31 +00:00
|
|
|
|
using UnityEngine;
|
2020-02-18 21:32:26 +01:00
|
|
|
|
|
2022-03-02 19:46:33 -08:00
|
|
|
|
namespace QSB.TimeSync;
|
|
|
|
|
|
|
|
|
|
public class StopMeditation : MonoBehaviour
|
2020-02-18 21:32:26 +01:00
|
|
|
|
{
|
2022-03-02 19:46:33 -08:00
|
|
|
|
public void Init()
|
2020-12-02 21:29:53 +00:00
|
|
|
|
{
|
2022-03-02 19:46:33 -08:00
|
|
|
|
var menuManager = Locator.GetSceneMenuManager();
|
2020-02-29 09:39:15 +01:00
|
|
|
|
|
2022-03-02 19:46:33 -08:00
|
|
|
|
if (menuManager == null)
|
|
|
|
|
{
|
|
|
|
|
return;
|
|
|
|
|
}
|
2022-02-24 22:04:54 -08:00
|
|
|
|
|
2022-03-02 19:46:33 -08:00
|
|
|
|
if (menuManager._pauseMenu == null || menuManager.pauseMenu._skipToNextLoopButton == null)
|
|
|
|
|
{
|
|
|
|
|
return;
|
2022-02-27 04:40:44 -08:00
|
|
|
|
}
|
2022-03-02 19:46:33 -08:00
|
|
|
|
|
|
|
|
|
menuManager.pauseMenu._skipToNextLoopButton.SetActive(false);
|
2020-12-02 21:29:53 +00:00
|
|
|
|
}
|
2020-12-03 08:28:05 +00:00
|
|
|
|
}
|