加打印
This commit is contained in:
parent
e79923fa01
commit
52bac73a8a
|
@ -5,6 +5,7 @@ using System.Linq;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.SceneManagement;
|
using UnityEngine.SceneManagement;
|
||||||
|
using static UnityEditor.PlayerSettings;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 系统初始化
|
/// 系统初始化
|
||||||
|
@ -68,6 +69,14 @@ public class CallForTest : MonoBehaviour
|
||||||
{
|
{
|
||||||
//获取启动参数
|
//获取启动参数
|
||||||
infos = Environment.GetCommandLineArgs().ToList();
|
infos = Environment.GetCommandLineArgs().ToList();
|
||||||
|
Debug.Log("启动参数--------------------------------------------");
|
||||||
|
infos.ForEach(info =>
|
||||||
|
{
|
||||||
|
Debug.Log(info);
|
||||||
|
});
|
||||||
|
Debug.Log("启动参数--------------------------------------------");
|
||||||
|
Debug.Log("");
|
||||||
|
|
||||||
string code = infos.Find(a => a.StartsWith("code="));
|
string code = infos.Find(a => a.StartsWith("code="));
|
||||||
string enterprise_code = infos.Find(a => a.StartsWith("enterprise_code="));
|
string enterprise_code = infos.Find(a => a.StartsWith("enterprise_code="));
|
||||||
string config_value = infos.Find(a => a.StartsWith("config_value="));
|
string config_value = infos.Find(a => a.StartsWith("config_value="));
|
||||||
|
@ -108,6 +117,7 @@ public class CallForTest : MonoBehaviour
|
||||||
}
|
}
|
||||||
|
|
||||||
//加载第二个场景,即企业场景
|
//加载第二个场景,即企业场景
|
||||||
|
Debug.Log("准备加载Mainscene");
|
||||||
SceneManager.LoadScene(1);
|
SceneManager.LoadScene(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue