Fixed bugs related to resetting the window location while toggled off, and the setting being stored incorrectly initially compared to the gui visual.

This commit is contained in:
Firerise9402 2023-12-13 10:47:13 -05:00
parent eb5fd497b7
commit 07c844cd94
2 changed files with 10 additions and 2 deletions

View file

@ -38,7 +38,7 @@ namespace HeavenStudio.Common
false, false,
true, true,
true, true,
true false
); );
// disable if platform is mac // disable if platform is mac

View file

@ -216,7 +216,15 @@ namespace HeavenStudio
pan = defaultPan; pan = defaultPan;
scale = defaultScale; scale = defaultScale;
shakeResult = defaultShake; shakeResult = defaultShake;
#if UNITY_EDITOR
return;
#else
if(Application.isEditor || !Editor.Editor.instance.fullscreen || !Conductor.instance.isPlaying) return;
if(PersistentDataManager.gameSettings.windowDanceEnable)
{
GlobalGameManager.ChangeScreenSize(); GlobalGameManager.ChangeScreenSize();
} }
#endif
}
} }
} }