Fixes to loading and account data loading
This commit is contained in:
@@ -162,6 +162,19 @@ public class AccountLoggedIn : MonoBehaviour
|
|||||||
if ((bool)jsonResponse["success"])
|
if ((bool)jsonResponse["success"])
|
||||||
{
|
{
|
||||||
BazookaManager.Instance.saveFile = JObject.FromObject(jsonResponse["data"]);
|
BazookaManager.Instance.saveFile = JObject.FromObject(jsonResponse["data"]);
|
||||||
|
if (!Application.isMobilePlatform)
|
||||||
|
{
|
||||||
|
var width = Display.main.systemWidth;
|
||||||
|
var height = Display.main.systemHeight;
|
||||||
|
Screen.SetResolution(width, height, BazookaManager.Instance.GetSettingFullScreen());
|
||||||
|
QualitySettings.vSyncCount = BazookaManager.Instance.GetSettingVsync() ? 1 : -1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Application.targetFrameRate = 360;
|
||||||
|
QualitySettings.vSyncCount = 0;
|
||||||
|
}
|
||||||
|
MenuMusic.Instance.GetComponent<AudioSource>().volume = BazookaManager.Instance.GetSettingMusicVolume();
|
||||||
Tools.UpdateStatusText(loggedInText, "Loaded account data", Color.green);
|
Tools.UpdateStatusText(loggedInText, "Loaded account data", Color.green);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -13,10 +13,12 @@ public class LoadingMenu : MonoBehaviour
|
|||||||
|
|
||||||
void Start()
|
void Start()
|
||||||
{
|
{
|
||||||
QualitySettings.vSyncCount = BazookaManager.Instance.GetSettingVsync() ? 1 : -1;
|
|
||||||
if (!Application.isMobilePlatform)
|
if (!Application.isMobilePlatform)
|
||||||
{
|
{
|
||||||
Screen.fullScreen = BazookaManager.Instance.GetSettingFullScreen();
|
var width = Display.main.systemWidth;
|
||||||
|
var height = Display.main.systemHeight;
|
||||||
|
Screen.SetResolution(width, height, BazookaManager.Instance.GetSettingFullScreen());
|
||||||
|
QualitySettings.vSyncCount = BazookaManager.Instance.GetSettingVsync() ? 1 : -1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user