void OnDisable() { if (blur != null) { blur.Dispose(); blur = null; } if (glow != null) { glow.Dispose(); glow = null; } blurred.DestroySelf(); }
void OnEnable() { blur = new Blur(); glow = new Glow(); }