コード例 #1
0
 void Init()
 {
     svgShape    = GetComponent(typeof(ISVGShape)) as ISVGShape;
     svgRenderer = GetComponent(typeof(ISVGRenderer)) as ISVGRenderer;
     svgRenderer.AddModifier(this);
     svgRenderer.OnPrepareForRendering += PrepareForRendering;
 }
コード例 #2
0
 void Init()
 {
     svgShape = GetComponent(typeof(ISVGShape)) as ISVGShape;
     svgRenderer = GetComponent(typeof(ISVGRenderer)) as ISVGRenderer;
     svgRenderer.AddModifier(this);
     svgRenderer.OnPrepareForRendering += PrepareForRendering;
 }
コード例 #3
0
 protected virtual void Init()
 {
     if (svgRenderer != null)
     {
         svgRenderer.AddModifier(this);
         svgRenderer.OnPrepareForRendering += PrepareForRendering;
     }
 }