private void OnDestroy() { if (effect != null) { effect.Dispose(); } }
protected override void OnDestroy() { base.OnDestroy(); if (effect != null) { effect.Dispose(); } }
private void OnDestroy() { if (effect != null) { effect.Dispose(); } DeleteAndTransitionRenderProfile(null); }