protected override void OnDisable() { this.postEffect.Destroy(); this.postEffect = null; if (instance == this) { instance = null; } }
protected override void OnEnable() { this.postEffect = ClientPostEffectsManager.Add <PostEffectNausea>(); this.postEffect.Intensity = this.currentIntensity = 0; }