Elin Decompiled Documentation
EA 23.102 Nightly
Loading...
Searching...
No Matches
VFX.cs
Go to the documentation of this file.
1
using
UnityEngine;
2
3
public
class
VFX
:
EMono
4
{
5
public
ParticleSystem
ps
;
6
7
public
AnimationCurve
timeCurve
;
8
9
public
int
baseParticleCount
;
10
11
public
bool
useSunColor
;
12
13
public
bool
dbg
;
14
15
public
void
OnChangeHour
()
16
{
17
int
maxParticles = (int)(
timeCurve
.Evaluate(
EMono
.
scene
.
timeRatio
) * (float)
baseParticleCount
);
18
ParticleSystem.MainModule main =
ps
.main;
19
main.maxParticles = maxParticles;
20
if
(
useSunColor
)
21
{
22
main.startColor =
EMono
.
scene
.
profile
.
color
.
sun
.Evaluate(
EMono
.
scene
.
timeRatio
);
23
}
24
if
(
dbg
)
25
{
26
Debug
.Log(
EMono
.
scene
.
timeRatio
+
"/"
+
ps
.main.maxParticles);
27
}
28
}
29
}
ReleaseMode.Debug
@ Debug
EMono
Definition:
EMono.cs:4
EMono.scene
static Scene scene
Definition:
EMono.cs:27
SceneColorProfile.sun
Gradient sun
Definition:
SceneColorProfile.cs:5
SceneProfile.color
SceneColorProfile color
Definition:
SceneProfile.cs:12
Scene.timeRatio
float timeRatio
Definition:
Scene.cs:124
Scene.profile
SceneProfile profile
Definition:
Scene.cs:73
VFX
Definition:
VFX.cs:4
VFX.ps
ParticleSystem ps
Definition:
VFX.cs:5
VFX.useSunColor
bool useSunColor
Definition:
VFX.cs:11
VFX.OnChangeHour
void OnChangeHour()
Definition:
VFX.cs:15
VFX.dbg
bool dbg
Definition:
VFX.cs:13
VFX.baseParticleCount
int baseParticleCount
Definition:
VFX.cs:9
VFX.timeCurve
AnimationCurve timeCurve
Definition:
VFX.cs:7
Elin
VFX.cs
Generated by
1.9.6