| 123456789101112131415161718192021222324252627282930313233 | 
							- using UnityEngine;
 
- using GFGGame;
 
- using GFGGame.Launcher;
 
- using FairyGUI;
 
- using System;
 
- using System.Collections.Generic;
 
- public class GameLauncher : MonoBehaviour
 
- {
 
-     private void Awake()
 
-     {
 
-         DontDestroyOnLoad(gameObject);
 
-     }
 
-     // Start is called before the first frame update
 
-     void Start()
 
-     {
 
-         Screen.sleepTimeout = SleepTimeout.NeverSleep;
 
-         Application.runInBackground = true;
 
-         LauncherConfig.InitScriptCompilation();
 
-         FGUILauncher.Init();
 
-         HealthAdviceView.Open();
 
-         int time = LauncherConfig.netType == LauncherConfig.EnumNetType.TISHEN ? 10 : 1;
 
-         Timers.inst.Add(time, 1, (object param) =>
 
-         {
 
-             HealthAdviceView.Close();
 
-             LauncherView.Instance.Open();
 
-             LauncherController.InitLauncherCfg();
 
-         });
 
-     }
 
- }
 
 
  |