void Init() { svgShape = GetComponent(typeof(ISVGShape)) as ISVGShape; svgRenderer = GetComponent(typeof(ISVGRenderer)) as ISVGRenderer; svgRenderer.AddModifier(this); svgRenderer.OnPrepareForRendering += PrepareForRendering; }
protected virtual void Init() { if (svgRenderer != null) { svgRenderer.AddModifier(this); svgRenderer.OnPrepareForRendering += PrepareForRendering; } }