yyl
1 天以前 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
using System;
using System.Collections.Generic;
using System.IO;
using UnityEngine;
public class LaunchFadeOutTask : LaunchTask
{
    public override float expectTime
    {
        get { return LocalSave.GetFloat("LaunchFadeOutTask_ExpectTime", 1f); }
        protected set { LocalSave.SetFloat("LaunchFadeOutTask_ExpectTime", value); }
    }
 
    public override void Begin()
    {
        LaunchInHot.m_CurrentStage = LaunchStage.Complete;
        duration = 0.5f;
 
        ShaderUtility.WarmUpAll();
        //SpeechTranslate.Instance.RequestGetToken();
        
        
 
 
 
 
        // try
        // {
        //     Main.Init();//考虑移到launchcomplete (launchinhot)里?
        // }
        // catch (Exception e)
        // {
        //     UnityEngine.Debug.LogError(e);
        // }
 
        // try
        // {
        //     LogicLauncher.LaunchStart();
        // }
        // catch (Exception e)
        // {
        //     UnityEngine.Debug.LogError(e);
        // }
    }
 
    public override void End()
    {
        expectTime = timer;
        Debug.LogFormat("{0}执行时长:{1};", this.GetType().Name, timer);
 
 
    }
 
    public override void Update()
    {
        if (done)
        {
            return;
        }
        timer += Time.deltaTime;
 
        if (timer >= 0.5f)//&& ILLauncherProxy.Instance.started)
        {
            done = true;
        }
        else
        {
            done = false;
            progress = Mathf.Clamp01(timer / expectTime);
        }
 
        ExceptionReport();
    }
 
}