using UnityEngine;
namespace GeNa.Core
{
public class Spline : GeNaSpline
{
///
/// Creates a Spline with a given Name
///
///
///
public static Spline CreateSpline(string name)
{
GameObject genaGo = new GameObject(name);
// GeNa Spawner
GameObject parent = GeNaUtility.GeNaSplinesTransform.gameObject;
// Reparent it
genaGo.transform.SetParent(parent.transform);
// Add & Return Spline Component
Spline spline = genaGo.AddComponent();
spline.Name = name;
return spline;
}
}
}