-
Notifications
You must be signed in to change notification settings - Fork 0
/
UtageUguiBoot.cs
168 lines (153 loc) · 4.05 KB
/
UtageUguiBoot.cs
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using UnityEngine;
using Utage;
[AddComponentMenu("Utage/TemplateUI/Title")]
public class UtageUguiBoot : UguiView
{
[SerializeField]
private AdvEngine engine;
public UguiFadeTextureStream fadeTextureStream;
public bool isWaitBoot;
public bool isWaitDownLoad;
public bool isWaitSplashScreen = true;
public UtageUguiLoadWait loadWait;
public UtageUguiTitle title;
[DebuggerHidden]
private IEnumerator CoUpdate()
{
return new <CoUpdate>c__Iterator0 { $this = this };
}
public void Start()
{
this.title.get_gameObject().SetActive(false);
base.StartCoroutine(this.CoUpdate());
}
public AdvEngine Engine
{
get
{
if (this.engine == null)
{
}
return (this.engine = Object.FindObjectOfType<AdvEngine>());
}
}
[CompilerGenerated]
private sealed class <CoUpdate>c__Iterator0 : IEnumerator, IDisposable, IEnumerator<object>
{
internal object $current;
internal bool $disposing;
internal int $PC;
internal UtageUguiBoot $this;
[DebuggerHidden]
public void Dispose()
{
this.$disposing = true;
this.$PC = -1;
}
public bool MoveNext()
{
uint num = (uint) this.$PC;
this.$PC = -1;
switch (num)
{
case 0:
if (!this.$this.isWaitSplashScreen)
{
goto Label_0063;
}
break;
case 1:
break;
case 2:
goto Label_00C9;
case 3:
goto Label_010E;
default:
goto Label_0180;
}
if (!WrapperUnityVersion.IsFinishedSplashScreen())
{
this.$current = null;
if (!this.$disposing)
{
this.$PC = 1;
}
goto Label_0182;
}
Label_0063:
this.$this.Open();
if (this.$this.fadeTextureStream == null)
{
goto Label_00DE;
}
this.$this.fadeTextureStream.get_gameObject().SetActive(true);
this.$this.fadeTextureStream.Play();
Label_00C9:
while (this.$this.fadeTextureStream.IsPlaying)
{
this.$current = null;
if (!this.$disposing)
{
this.$PC = 2;
}
goto Label_0182;
}
Label_00DE:
if (!this.$this.isWaitBoot)
{
goto Label_0123;
}
Label_010E:
while (this.$this.Engine.IsWaitBootLoading)
{
this.$current = null;
if (!this.$disposing)
{
this.$PC = 3;
}
goto Label_0182;
}
Label_0123:
this.$this.Close();
if (this.$this.isWaitDownLoad && (this.$this.loadWait != null))
{
this.$this.loadWait.OpenOnBoot();
}
else
{
this.$this.title.Open();
}
this.$PC = -1;
Label_0180:
return false;
Label_0182:
return true;
}
[DebuggerHidden]
public void Reset()
{
throw new NotSupportedException();
}
object IEnumerator<object>.Current
{
[DebuggerHidden]
get
{
return this.$current;
}
}
object IEnumerator.Current
{
[DebuggerHidden]
get
{
return this.$current;
}
}
}
}