mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-04 02:47:22 +00:00
32 lines
559 B
C#
32 lines
559 B
C#
using Mirror;
|
|
|
|
namespace QSB.TimeSync;
|
|
|
|
public class PreserveTimeScale : NetworkBehaviour
|
|
{
|
|
public void Init()
|
|
{
|
|
if (!isServer)
|
|
{
|
|
var campfires = FindObjectsOfType<Campfire>();
|
|
foreach (var campfire in campfires)
|
|
{
|
|
campfire._canSleepHere = false;
|
|
}
|
|
}
|
|
|
|
var menuManager = Locator.GetSceneMenuManager();
|
|
|
|
if (menuManager == null)
|
|
{
|
|
return;
|
|
}
|
|
|
|
if (menuManager._pauseMenu == null || menuManager.pauseMenu._skipToNextLoopButton == null)
|
|
{
|
|
return;
|
|
}
|
|
|
|
menuManager.pauseMenu._skipToNextLoopButton.SetActive(false);
|
|
}
|
|
} |