mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-26 18:35:34 +00:00
commit
a739fa17c5
@ -28,6 +28,14 @@ namespace QSB.SaveSync.Events
|
|||||||
|
|
||||||
public override void OnReceiveRemote(bool isHost, GameStateMessage message)
|
public override void OnReceiveRemote(bool isHost, GameStateMessage message)
|
||||||
{
|
{
|
||||||
|
if (QSBSceneManager.CurrentScene != OWScene.TitleScreen)
|
||||||
|
{
|
||||||
|
DebugLog.ToConsole($"Error - Treid to handle GameStateEvent when not in TitleScreen!", OWML.Common.MessageType.Error);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
PlayerData.ResetGame();
|
||||||
|
|
||||||
var gameSave = StandaloneProfileManager.SharedInstance.currentProfileGameSave;
|
var gameSave = StandaloneProfileManager.SharedInstance.currentProfileGameSave;
|
||||||
gameSave.loopCount = message.LoopCount;
|
gameSave.loopCount = message.LoopCount;
|
||||||
gameSave.knownFrequencies = message.KnownFrequencies;
|
gameSave.knownFrequencies = message.KnownFrequencies;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user