fix scripts not loading and build scene load order
This commit is contained in:
@@ -185,7 +185,7 @@ public class ScreenResWindow : BaseWindow
|
||||
int num;
|
||||
if (this.dict.TryGetValue(obj, out num))
|
||||
{
|
||||
if (num == 0)
|
||||
if (num == 0)
|
||||
{
|
||||
base.PlaySE_Cancel();
|
||||
SceneManager.BackScene();
|
||||
@@ -193,7 +193,8 @@ public class ScreenResWindow : BaseWindow
|
||||
else if (num == 1)
|
||||
{
|
||||
Screen.SetResolution(1024, 576, false, 60);
|
||||
}
|
||||
|
||||
}
|
||||
else if (num == 2)
|
||||
{
|
||||
Screen.SetResolution(1280, 720, false, 60);
|
||||
|
||||
@@ -200,7 +200,8 @@ public class UnityFile
|
||||
if (Application.platform == RuntimePlatform.Android)
|
||||
{
|
||||
// On Android, use "jar:file://" URL to load file from StreamingAssets
|
||||
url = ("jar:file://" + Application.dataPath + "!/assets" + m_szPath + m_szName + ".png").TrimStart('/');
|
||||
//url = ("jar:file://" + Application.dataPath + "!/assets" + m_szPath + m_szName + ".png").TrimStart('/');
|
||||
url = ("jar:file://" + Pathing.BaseContentPath.TrimEnd('/') + m_szPath + m_szName + ".png").TrimStart('/');
|
||||
UnityEngine.Debug.LogWarning(url);
|
||||
}
|
||||
else
|
||||
|
||||
@@ -8,10 +8,6 @@ public class RebootGame : MonoBehaviour
|
||||
void Start()
|
||||
{
|
||||
int test = 0;
|
||||
while (UnityEngine.SceneManagement.SceneManager.loadedSceneCount > 1)
|
||||
{
|
||||
UnityEngine.Debug.Log(UnityEngine.SceneManagement.SceneManager.loadedSceneCount);
|
||||
}
|
||||
this.gameObject.GetComponent<UnityApp>().enabled = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user