// Token: 0x06002D31 RID: 11569 RVA: 0x000A9148 File Offset: 0x000A7348 private void OnDisable() { global::GameFullscreen instance = global::ImageEffectManager.GetInstance <global::GameFullscreen>(); int num = this.lastShowFlags; this.lastShowFlags = 0; if ((num & 1) == 1) { instance.overlays[0].texture = null; } if ((num & 2) == 2) { instance.overlays[1].texture = null; } }
// Token: 0x06004BC4 RID: 19396 RVA: 0x00128098 File Offset: 0x00126298 protected override void OnUpdate(float factor) { Color color = this.from * (1f - factor) + this.to * factor; if (this.isFullscreen) { global::GameFullscreen instance = global::ImageEffectManager.GetInstance <global::GameFullscreen>(); if (instance) { instance.autoFadeColor = color; } color.a = 0f; } this.color = color; }
// Token: 0x06002D30 RID: 11568 RVA: 0x000A9034 File Offset: 0x000A7234 private void LateUpdate() { global::GameFullscreen instance = global::ImageEffectManager.GetInstance <global::GameFullscreen>(); float alpha; float alpha2; int num = this.UpdateFadeValues(out alpha, out alpha2); int num2 = num ^ this.lastShowFlags; this.lastShowFlags = num; if (num2 != 0) { if ((num2 & 1) == 1) { if ((num & 1) == 1) { instance.overlays[0].texture = this.damageOverlay; instance.overlays[0].pass = 3; } else { instance.overlays[0].texture = null; } } if ((num2 & 2) == 2) { if ((num & 2) == 2) { instance.overlays[1].texture = this.damageOverlay2; instance.overlays[1].pass = 3; } else { instance.overlays[1].texture = null; } } } if ((num & 1) == 1) { instance.overlays[0].alpha = alpha; } if ((num & 2) == 2) { instance.overlays[1].alpha = alpha2; } }