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:
parent
eb5fd497b7
commit
07c844cd94
|
|
@ -38,7 +38,7 @@ namespace HeavenStudio.Common
|
|||
false,
|
||||
true,
|
||||
true,
|
||||
true
|
||||
false
|
||||
);
|
||||
|
||||
// disable if platform is mac
|
||||
|
|
|
|||
|
|
@ -216,7 +216,15 @@ namespace HeavenStudio
|
|||
pan = defaultPan;
|
||||
scale = defaultScale;
|
||||
shakeResult = defaultShake;
|
||||
GlobalGameManager.ChangeScreenSize();
|
||||
#if UNITY_EDITOR
|
||||
return;
|
||||
#else
|
||||
if(Application.isEditor || !Editor.Editor.instance.fullscreen || !Conductor.instance.isPlaying) return;
|
||||
if(PersistentDataManager.gameSettings.windowDanceEnable)
|
||||
{
|
||||
GlobalGameManager.ChangeScreenSize();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue