| | |
| | |
|
| | | private void Awake()
|
| | | {
|
| | | ResourcesPath.Instance.Init();
|
| | | SnxxzGame.Instance.gameObject.name = "__SnxxzGame__";
|
| | |
|
| | | Application.backgroundLoadingPriority = ThreadPriority.BelowNormal;
|
| | | Screen.sleepTimeout = SleepTimeout.NeverSleep;
|
| | |
|
| | | ShaderUtility.InitGlobalParams();
|
| | | SoundPlayer.CreateSoundPlayer();
|
| | |
|
| | | SystemSetting.Instance.SetSoundVolume(SystemSetting.Instance.GetSoundVolume());
|
| | | SystemSetting.Instance.SetSoundEffect(SystemSetting.Instance.GetSoundEffect());
|
| | | SystemSetting.Instance.SetGameFps(SystemSetting.Instance.GetGameFps());
|
| | |
|
| | | SDKUtility.Instance.Init();
|
| | | GameObjectPoolManager.Instance.gameObject.name = "GameObjectPool";
|
| | | GameObjectPoolManager.Instance.Initialize();
|
| | | ExceptionCatcher.Init();
|
| | | ExceptionCatcher.Catch();
|
| | | DebugUtility.Instance.Init();
|
| | | GlobalTimeEvent.Instance.Begin();
|
| | |
|
| | | #if UNITY_ANDROID && !UNITY_EDITOR
|
| | | var files = new List<FileInfo>();
|
| | | FileExtersion.GetAllDirectoryFileInfos(StringUtility.Contact(ResourcesPath.Instance.StreamingAssetPath, "builtin"), files);
|
| | |
| | | }
|
| | | #endif
|
| | |
|
| | | ResourcesPath.Instance.Init();
|
| | | SnxxzGame.Instance.gameObject.name = "__SnxxzGame__";
|
| | |
|
| | | Application.backgroundLoadingPriority = ThreadPriority.BelowNormal;
|
| | | Screen.sleepTimeout = SleepTimeout.NeverSleep;
|
| | |
|
| | | ShaderUtility.InitGlobalParams();
|
| | |
|
| | | SoundPlayer.CreateSoundPlayer();
|
| | | SoundPlayer.Instance.PlayLoginMusic();
|
| | | SystemSetting.Instance.SetSoundVolume(SystemSetting.Instance.GetSoundVolume());
|
| | | SystemSetting.Instance.SetSoundEffect(SystemSetting.Instance.GetSoundEffect());
|
| | | SystemSetting.Instance.SetGameFps(SystemSetting.Instance.GetGameFps());
|
| | |
|
| | | SDKUtility.Instance.Init();
|
| | | GameObjectPoolManager.Instance.gameObject.name = "GameObjectPool";
|
| | | GameObjectPoolManager.Instance.Initialize();
|
| | | ExceptionCatcher.Init();
|
| | | ExceptionCatcher.Catch();
|
| | | DebugUtility.Instance.Init();
|
| | | GlobalTimeEvent.Instance.Begin();
|
| | |
|
| | | AssetBundleUtility.Instance.InitBuiltInAsset();
|
| | | }
|
| | |
|
| | | void Start()
|
| | | {
|
| | | SoundPlayer.Instance.PlayLoginMusic();
|
| | | Config.Instance.PreLoadConfigs();
|
| | | ServerListCenter.Instance.RequestJumpUrl();
|
| | |
|