2025-09-25 19:04:05 +08:00
|
|
|
using System;
|
|
|
|
|
using System.Collections;
|
|
|
|
|
using Convention;
|
|
|
|
|
using Dreamteck.Splines;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
namespace Demo.Game
|
|
|
|
|
{
|
2025-10-07 01:45:52 +08:00
|
|
|
public class SplineTrackRenderer : BasicSplineRenderer<PathGenerator>
|
2025-09-25 19:04:05 +08:00
|
|
|
{
|
|
|
|
|
public static SplineTrackRenderer Make()
|
|
|
|
|
{
|
|
|
|
|
return new GameObject().AddComponent<SplineTrackRenderer>();
|
|
|
|
|
}
|
|
|
|
|
|
2025-10-04 23:09:46 +08:00
|
|
|
public override IEnumerator LoadScript(string script)
|
|
|
|
|
{
|
|
|
|
|
MyLineMaterial = Resources.Load<Material>("Line/Default");
|
|
|
|
|
yield return base.LoadScript(script);
|
|
|
|
|
}
|
2025-09-25 19:04:05 +08:00
|
|
|
}
|
|
|
|
|
}
|