14 if (this.isDestroying)
20 this.show = !
EMono.core.IsGameStarted;
24 this.sr.DOFade(this.targetFade, this.fadeTime);
25 this.skyLevel += Core.delta * this.speedSky;
26 if (this.skyLevel > this.targetFade)
28 this.skyLevel = this.targetFade;
36 this.sr.DOFade(0f, this.fadeTime);
38 this.skyLevel -= Core.delta * this.speedSky;
39 if (this.skyLevel < 0f)
45 this.grading.material.SetFloat(
"_SkyLevel", this.skyLevel);
46 this.grading.material.SetFloat(
"_ViewHeight", 20f);
47 this.grading.material.SetVector(
"_ScreenPos", Vector3.zero);
48 this.grading.material.SetVector(
"_Position", this.cam.transform.position *
this.speed);
49 this.grading.material.SetVector(
"_Offset", Vector3.zero);
50 this.grading.SetGrading();
56 this.isDestroying =
true;
58 this.ps.emission.enabled =
false;
59 DOTween.To(() => this.tiltShift.blurArea, delegate(
float x)
61 this.tiltShift.blurArea = x;
62 }, 0f, this.fadeTime);
63 this.sr2.DOFade(0f, this.fadeTime - 0.1f);
64 this.sr.DOFade(0f, this.fadeTime).OnComplete(delegate
68 UnityEngine.Object.Destroy(base.gameObject);
77 public TiltShift tiltShift;
80 public ScreenGrading grading;
83 public SpriteRenderer sr;
86 public SpriteRenderer sr2;
89 public ParticleSystem ps;
95 public float speedSky;
98 public float skyLevel = 1f;
101 public float fadeTime;
104 public float targetFade = 1f;
113 public bool isDestroying;
116 public DOTweenAnimation anim;