fixed the bugs
This commit is contained in:
parent
d08a857b1a
commit
57bb6c73c4
|
|
@ -48,8 +48,12 @@ namespace HeavenStudio
|
||||||
#if UNITY_EDITOR
|
#if UNITY_EDITOR
|
||||||
return;
|
return;
|
||||||
#else
|
#else
|
||||||
UniController.windowSize = (new Vector2(resX, resY));
|
if(Application.isEditor || !Editor.Editor.instance.fullscreen || !Conductor.instance.isPlaying) return;
|
||||||
UniController.windowPosition = (new Vector2(x, y));
|
if(PersistentDataManager.gameSettings.windowDanceEnable)
|
||||||
|
{
|
||||||
|
UniController.windowSize = (new Vector2(resX, resY));
|
||||||
|
UniController.windowPosition = (new Vector2(x, y));
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -101,10 +105,7 @@ namespace HeavenStudio
|
||||||
UpdateScale();
|
UpdateScale();
|
||||||
UpdatePan();
|
UpdatePan();
|
||||||
//SetShakeIntensity();
|
//SetShakeIntensity();
|
||||||
if(PersistentDataManager.gameSettings.windowDanceEnable)
|
SetPosition(Convert.ToInt16(pan.x), Convert.ToInt16(pan.y), Convert.ToInt16(scale.x), Convert.ToInt16(scale.y));
|
||||||
{
|
|
||||||
SetPosition(Convert.ToInt16(pan.x), Convert.ToInt16(pan.y), Convert.ToInt16(scale.x), Convert.ToInt16(scale.y));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void UpdatePan()
|
private void UpdatePan()
|
||||||
|
|
@ -213,11 +214,7 @@ namespace HeavenStudio
|
||||||
pan = defaultPan;
|
pan = defaultPan;
|
||||||
scale = defaultScale;
|
scale = defaultScale;
|
||||||
shakeResult = defaultShake;
|
shakeResult = defaultShake;
|
||||||
if(Application.isEditor) return;
|
SetPosition(Convert.ToInt16(pan.x), Convert.ToInt16(pan.y), Convert.ToInt16(scale.x), Convert.ToInt16(scale.y));
|
||||||
if(PersistentDataManager.gameSettings.windowDanceEnable)
|
|
||||||
{
|
|
||||||
SetPosition(Convert.ToInt16(pan.x), Convert.ToInt16(pan.y), Convert.ToInt16(scale.x), Convert.ToInt16(scale.y));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in a new issue