yyl
昨天 5d3366f2e0f687995eb7ad2107c4379fe7acd4e8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
 
 
using UnityEngine;
 
public class InitSettingTask : LaunchTask
{
    public override float expectTime
    {
        get { return LocalSave.GetFloat("InitSettingTask_ExpectTime", 1f); }
        protected set { LocalSave.SetFloat("InitSettingTask_ExpectTime", value); }
    }
 
    public override void Begin()
    {
        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());
        SystemSetting.Instance.LetFPSUnLimit();
 
        DebugUtility.Instance.Init();
        DebugUtility.Instance.CreateDebugRoot();
 
        GameObjectPoolManager.Instance.gameObject.name = "GameObjectPool";
        GameObjectPoolManager.Instance.Initialize();
 
        //ExceptionCatcher.Init();
        //ExceptionCatcher.Catch();
 
        GlobalTimeEvent.Instance.Begin();
        PackageRegedit.Init();
        Clock.Init();
 
        done = true;
    }
 
    public override void End()
    {
        expectTime = timer;
    }
 
    public override void Update()
    {
        timer += Time.deltaTime;
    }
}