Elin Decompiled Documentation EA 23.102 Nightly
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Pages
EmbarkActor Class Reference
Inheritance diagram for EmbarkActor:
EMono

Public Member Functions

void Hide ()
 

Public Attributes

Camera cam
 
TiltShift tiltShift
 
ScreenGrading grading
 
SpriteRenderer sr
 
SpriteRenderer sr2
 
ParticleSystem ps
 
float speed
 
float speedSky
 
float skyLevel = 1f
 
float fadeTime
 
float targetFade = 1f
 
bool show
 
bool crystal
 
bool isDestroying
 
DOTweenAnimation anim
 

Private Member Functions

void Update ()
 

Additional Inherited Members

- Static Public Member Functions inherited from EMono
static int rnd (int a)
 
- Static Public Attributes inherited from EMono
static Core core
 
- Properties inherited from EMono
static Game game [get]
 
static bool AdvMode [get]
 
static Player player [get]
 
static Chara pc [get]
 
static UI ui [get]
 
static Map _map [get]
 
static Zone _zone [get]
 
static FactionBranch Branch [get]
 
static FactionBranch BranchOrHomeBranch [get]
 
static Faction Home [get]
 
static Scene scene [get]
 
static BaseGameScreen screen [get]
 
static GameSetting setting [get]
 
static GameData gamedata [get]
 
static ColorProfile Colors [get]
 
static World world [get]
 
static SoundManager Sound [get]
 
static SourceManager sources [get]
 
static SourceManager editorSources [get]
 
static CoreDebug debug [get]
 

Detailed Description

Definition at line 5 of file EmbarkActor.cs.

Member Function Documentation

◆ Hide()

void EmbarkActor.Hide ( )
inline

Definition at line 78 of file EmbarkActor.cs.

79 {
80 isDestroying = true;
81 show = false;
82 ParticleSystem.EmissionModule emission = ps.emission;
83 emission.enabled = false;
84 DOTween.To(() => tiltShift.blurArea, delegate(float x)
85 {
86 tiltShift.blurArea = x;
87 }, 0f, fadeTime);
88 sr2.DOFade(0f, fadeTime - 0.1f);
89 sr.DOFade(0f, fadeTime).OnComplete(delegate
90 {
91 if (crystal)
92 {
93 Object.Destroy(base.gameObject);
94 }
95 });
96 }
SpriteRenderer sr2
Definition: EmbarkActor.cs:15
bool isDestroying
Definition: EmbarkActor.cs:33
ParticleSystem ps
Definition: EmbarkActor.cs:17
TiltShift tiltShift
Definition: EmbarkActor.cs:9
float fadeTime
Definition: EmbarkActor.cs:25
bool crystal
Definition: EmbarkActor.cs:31
SpriteRenderer sr
Definition: EmbarkActor.cs:13

References crystal, fadeTime, isDestroying, ps, show, sr, sr2, and tiltShift.

◆ Update()

void EmbarkActor.Update ( )
inlineprivate

Definition at line 37 of file EmbarkActor.cs.

38 {
39 if (isDestroying)
40 {
41 return;
42 }
43 if (!crystal)
44 {
46 }
47 if (show)
48 {
49 sr.DOFade(targetFade, fadeTime);
50 skyLevel += Core.delta * speedSky;
51 if (skyLevel > targetFade)
52 {
54 }
55 anim.DOPlay();
56 }
57 else
58 {
59 if (!crystal)
60 {
61 sr.DOFade(0f, fadeTime);
62 }
63 skyLevel -= Core.delta * speedSky;
64 if (skyLevel < 0f)
65 {
66 skyLevel = 0f;
67 }
68 anim.DOPause();
69 }
70 grading.material.SetFloat("_SkyLevel", skyLevel);
71 grading.material.SetFloat("_ViewHeight", 20f);
72 grading.material.SetVector("_ScreenPos", Vector3.zero);
73 grading.material.SetVector("_Position", cam.transform.position * speed);
74 grading.material.SetVector("_Offset", Vector3.zero);
75 grading.SetGrading();
76 }
bool IsGameStarted
Definition: Core.cs:84
Definition: EMono.cs:4
static Core core
Definition: EMono.cs:5
ScreenGrading grading
Definition: EmbarkActor.cs:11
Camera cam
Definition: EmbarkActor.cs:7
float speedSky
Definition: EmbarkActor.cs:21
float targetFade
Definition: EmbarkActor.cs:27
float speed
Definition: EmbarkActor.cs:19
DOTweenAnimation anim
Definition: EmbarkActor.cs:35
float skyLevel
Definition: EmbarkActor.cs:23

References anim, cam, EMono.core, crystal, fadeTime, grading, isDestroying, Core.IsGameStarted, show, skyLevel, speed, speedSky, sr, and targetFade.

Member Data Documentation

◆ anim

DOTweenAnimation EmbarkActor.anim

Definition at line 35 of file EmbarkActor.cs.

Referenced by Update().

◆ cam

Camera EmbarkActor.cam

Definition at line 7 of file EmbarkActor.cs.

Referenced by Update().

◆ crystal

bool EmbarkActor.crystal

Definition at line 31 of file EmbarkActor.cs.

Referenced by Hide(), and Update().

◆ fadeTime

float EmbarkActor.fadeTime

Definition at line 25 of file EmbarkActor.cs.

Referenced by Hide(), and Update().

◆ grading

ScreenGrading EmbarkActor.grading

Definition at line 11 of file EmbarkActor.cs.

Referenced by Update().

◆ isDestroying

bool EmbarkActor.isDestroying

Definition at line 33 of file EmbarkActor.cs.

Referenced by Hide(), and Update().

◆ ps

ParticleSystem EmbarkActor.ps

Definition at line 17 of file EmbarkActor.cs.

Referenced by Hide().

◆ show

bool EmbarkActor.show

Definition at line 29 of file EmbarkActor.cs.

Referenced by Hide(), and Update().

◆ skyLevel

float EmbarkActor.skyLevel = 1f

Definition at line 23 of file EmbarkActor.cs.

Referenced by Update().

◆ speed

float EmbarkActor.speed

Definition at line 19 of file EmbarkActor.cs.

Referenced by Update().

◆ speedSky

float EmbarkActor.speedSky

Definition at line 21 of file EmbarkActor.cs.

Referenced by Update().

◆ sr

SpriteRenderer EmbarkActor.sr

Definition at line 13 of file EmbarkActor.cs.

Referenced by Hide(), and Update().

◆ sr2

SpriteRenderer EmbarkActor.sr2

Definition at line 15 of file EmbarkActor.cs.

Referenced by Hide().

◆ targetFade

float EmbarkActor.targetFade = 1f

Definition at line 27 of file EmbarkActor.cs.

Referenced by Update().

◆ tiltShift

TiltShift EmbarkActor.tiltShift

Definition at line 9 of file EmbarkActor.cs.

Referenced by Hide().


The documentation for this class was generated from the following file: