quantum-space-buddies/QSB/TimeSync/StopMeditation.cs

23 lines
397 B
C#
Raw Normal View History

2022-03-02 11:51:31 +00:00
using UnityEngine;
2022-03-02 19:46:33 -08:00
namespace QSB.TimeSync;
public class StopMeditation : MonoBehaviour
{
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();
2022-03-02 19:46:33 -08:00
if (menuManager == null)
{
return;
}
2022-03-02 19:46:33 -08:00
if (menuManager._pauseMenu == null || menuManager.pauseMenu._skipToNextLoopButton == null)
{
return;
}
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
}