23 lines
564 B
C#
23 lines
564 B
C#
|
|
using System;
|
||
|
|
using System.Collections;
|
||
|
|
using Convention;
|
||
|
|
using Dreamteck.Splines;
|
||
|
|
using UnityEngine;
|
||
|
|
|
||
|
|
namespace Demo.Game
|
||
|
|
{
|
||
|
|
public class SplineSurfaceRenderer : BasicSplineRenderer<SurfaceGenerator>
|
||
|
|
{
|
||
|
|
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);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|