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,
|
false,
|
||||||
true,
|
true,
|
||||||
true,
|
true,
|
||||||
true
|
false
|
||||||
);
|
);
|
||||||
|
|
||||||
// disable if platform is mac
|
// disable if platform is mac
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in a new issue