private void AddShaderAnimatorAndRun() { if (!AddShaderAnimator) { return; } if (_shaderAnimator != null) { _shaderAnimator.Run(); return; } _shaderAnimator = gameObject.AddComponent <IFX_ShaderAnimator>(); _shaderAnimator.DynamicShaderParameters = new[] { DynamicShaderParameter }; _shaderAnimator.Run(); }