Elin Decompiled Documentation
EA 23.102 Nightly
Loading...
Searching...
No Matches
UIGameBG.cs
Go to the documentation of this file.
1
using
UnityEngine;
2
using
UnityEngine.UI;
3
4
public
class
UIGameBG
:
EMono
5
{
6
public
static
UIGameBG
Instance
;
7
8
public
bool
indoor
;
9
10
private
Image
image
;
11
12
public
static
bool
IsActive
13
{
14
get
15
{
16
if
((
bool
)
Instance
)
17
{
18
return
Instance.image.color.a >= 1f;
19
}
20
return
false
;
21
}
22
}
23
24
private
void
Awake
()
25
{
26
image
= GetComponent<Image>();
27
InvokeRepeating(
"Refresh"
, 0.5f, 0.5f);
28
Refresh
();
29
Instance
=
this
;
30
}
31
32
public
void
Refresh
()
33
{
34
float
timeRatio =
EMono
.
scene
.
timeRatio
;
35
SceneColorProfile
color =
EMono
.
scene
.
profile
.
color
;
36
color.
sun
.Evaluate(timeRatio);
37
Color
color2 = color.
sky
.Evaluate(timeRatio);
38
color.
skyBG
.Evaluate(timeRatio);
39
if
(timeRatio < 0.3f)
40
{
41
Mathf.Min((0.3f - timeRatio) * 10f, 1f);
42
}
43
if
(!
indoor
)
44
{
45
image.color = color2;
46
}
47
}
48
}
FOWType.Color
@ Color
EMono
Definition:
EMono.cs:4
EMono.scene
static Scene scene
Definition:
EMono.cs:27
SceneColorProfile
Definition:
SceneColorProfile.cs:4
SceneColorProfile.sun
Gradient sun
Definition:
SceneColorProfile.cs:5
SceneColorProfile.sky
Gradient sky
Definition:
SceneColorProfile.cs:13
SceneColorProfile.skyBG
Gradient skyBG
Definition:
SceneColorProfile.cs:17
SceneProfile.color
SceneColorProfile color
Definition:
SceneProfile.cs:12
Scene.timeRatio
float timeRatio
Definition:
Scene.cs:124
Scene.profile
SceneProfile profile
Definition:
Scene.cs:73
UIGameBG
Definition:
UIGameBG.cs:5
UIGameBG.Awake
void Awake()
Definition:
UIGameBG.cs:24
UIGameBG.Instance
static UIGameBG Instance
Definition:
UIGameBG.cs:6
UIGameBG.IsActive
static bool IsActive
Definition:
UIGameBG.cs:13
UIGameBG.Refresh
void Refresh()
Definition:
UIGameBG.cs:32
UIGameBG.indoor
bool indoor
Definition:
UIGameBG.cs:8
UIGameBG.image
Image image
Definition:
UIGameBG.cs:10
Elin
UIGameBG.cs
Generated by
1.9.6