| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 | using UnityEngine;using GFGGame;using FairyGUI;using System.Collections;using ET;using System.Threading;public class GameLauncher : MonoBehaviour{    private void Awake()    {        Application.runInBackground = true;        //ET        System.AppDomain.CurrentDomain.UnhandledException += (sender, e) =>        {            Log.Error(e.ExceptionObject.ToString());        };        SynchronizationContext.SetSynchronizationContext(ThreadSynchronizationContext.Instance);        DontDestroyOnLoad(gameObject);        ETTask.ExceptionHandler += Log.Error;        Log.ILog = new UnityLogger();        Options.Instance = new Options();        TimeInfo.Instance.TimeZone = 8;    }    // Start is called before the first frame update    void Start()    {        LauncherConfig.Init();        Debug.LogFormat("Application.version {0}", Application.version);        FGUILauncher.Init();        LauncherView.Instance.Open();        LauncherView.Instance.SetDesc("正在初始化...");        LauncherConfig.GetPlatformCfg();    }}
 |