mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-17 19:11:32 +00:00
25 lines
507 B
C#
25 lines
507 B
C#
using Mirror;
|
|
|
|
namespace QSB.TimeSync
|
|
{
|
|
public class PreserveTimeScale : NetworkBehaviour
|
|
{
|
|
public void Start()
|
|
{
|
|
// disable meditation button;
|
|
Locator.GetSceneMenuManager().pauseMenu._skipToNextLoopButton.SetActive(false);
|
|
|
|
// Allow server to sleep at campfires
|
|
if (isServer)
|
|
{
|
|
return;
|
|
}
|
|
|
|
var campfires = FindObjectsOfType<Campfire>();
|
|
foreach (var campfire in campfires)
|
|
{
|
|
campfire._canSleepHere = false; // Stop players from sleeping at campfires
|
|
}
|
|
}
|
|
}
|
|
} |