using System; using System.Collections; using Convention; using Dreamteck.Splines; using UnityEngine; namespace Demo.Game { public class SplineTrackRenderer : BasicSplineRenderer { public static SplineTrackRenderer Make() { return new GameObject().AddComponent(); } protected override IEnumerator DoSomethingDuringApplyScript() { if (MyDefaultMaterial == null) MyDefaultMaterial = StaticCacheDefaultMaterial; yield return base.DoSomethingDuringApplyScript(); } } }