23 lines
559 B
C#
23 lines
559 B
C#
using System;
|
|
using System.Collections;
|
|
using Convention;
|
|
using Dreamteck.Splines;
|
|
using UnityEngine;
|
|
|
|
namespace Demo.Game
|
|
{
|
|
public class SplineTrackRenderer : BasicSplineRenderer<PathGenerator>
|
|
{
|
|
public static SplineTrackRenderer Make()
|
|
{
|
|
return new GameObject().AddComponent<SplineTrackRenderer>();
|
|
}
|
|
|
|
public override IEnumerator LoadScript(string script)
|
|
{
|
|
MyLineMaterial = Resources.Load<Material>("Line/Default");
|
|
yield return base.LoadScript(script);
|
|
}
|
|
}
|
|
}
|