WuhuIslandTesting/Library/PackageCache/com.unity.splines@1.0.1/Samples~/Runtime/SplineData/DriftSplineData.cs
2025-01-07 02:06:59 +01:00

27 lines
675 B
C#

using UnityEngine;
using UnityEngine.Splines;
namespace Unity.Splines.Examples
{
public class DriftSplineData : MonoBehaviour
{
public float m_Default = 0f;
[SerializeField]
SplineData<float> m_Drift;
public SplineData<float> drift => m_Drift;
SplineContainer m_SplineContainer;
public SplineContainer container
{
get
{
if(m_SplineContainer == null)
m_SplineContainer = GetComponent<SplineContainer>();
return m_SplineContainer;
}
set => m_SplineContainer = value;
}
}
}