24 lines
626 B
C#
24 lines
626 B
C#
using Demo.Game.Attr;
|
|
using Dreamteck.Splines;
|
|
using System.Collections;
|
|
using UnityEngine;
|
|
|
|
namespace Demo.Game
|
|
{
|
|
[Scriptable]
|
|
public class SplineRenderer : BasicSplineRenderer<Dreamteck.Splines.SplineRenderer>
|
|
{
|
|
public static SplineRenderer Make()
|
|
{
|
|
return new GameObject().AddComponent<SplineRenderer>();
|
|
}
|
|
|
|
protected override IEnumerator DoSomethingDuringApplyScript()
|
|
{
|
|
if (MyDefaultMaterial == null)
|
|
MyDefaultMaterial = StaticCacheDefaultMaterial;
|
|
yield return base.DoSomethingDuringApplyScript();
|
|
}
|
|
}
|
|
}
|