| | |
| | | |
| | | |
| | | using Cysharp.Threading.Tasks; |
| | | using UnityEngine; |
| | | |
| | | public class InitSettingTask : LaunchTask |
| | |
| | | { |
| | | ShaderUtility.InitGlobalParams(); |
| | | // SoundPlayer.CreateSoundPlayer(); |
| | | SoundPlayer.Instance.Init(); |
| | | SoundPlayer.Instance.PlayLoginMusic(); |
| | | SoundPlayer.CreateSoundPlayer().ContinueWith(() => { |
| | | SoundPlayer.Instance.Init(); |
| | | SoundPlayer.Instance.PlayLoginMusic(); |
| | | |
| | | SystemSetting.Instance.SetSoundVolume(SystemSetting.Instance.GetSoundVolume()); |
| | | SystemSetting.Instance.SetSoundEffect(SystemSetting.Instance.GetSoundEffect()); |
| | | }).Forget(); |
| | | |
| | | // SoundPlayer.Instance.PlayBackGroundMusic(41); |
| | | |
| | | SystemSetting.Instance.SetSoundVolume(SystemSetting.Instance.GetSoundVolume()); |
| | | SystemSetting.Instance.SetSoundEffect(SystemSetting.Instance.GetSoundEffect()); |
| | | |
| | | SystemSetting.Instance.SetGameFps(SystemSetting.Instance.GetGameFps()); |
| | | SystemSetting.Instance.LetFPSUnLimit(); |
| | | |
| | | DebugUtility.Instance.Init(); |
| | | DebugUtility.Instance.CreateDebugRoot(); |
| | | DebugUtility.Instance.CreateDebugRoot().Forget(); |
| | | |
| | | GameObjectPoolManager.Instance.gameObject.name = "GameObjectPool"; |
| | | GameObjectPoolManager.Instance.Initialize(); |