Save
This commit is contained in:
@@ -6,7 +6,7 @@ using UnityEngine;
|
||||
|
||||
namespace Convention.VFX
|
||||
{
|
||||
public class DreamTeckSplinePointBuilder : MonoAnyBehaviour, ILoadedInHierarchy
|
||||
public class DreamTeckSplinePointBuilder : MonoBehaviour, ILoadedInHierarchy
|
||||
{
|
||||
public enum InjectType
|
||||
{
|
||||
@@ -15,7 +15,6 @@ namespace Convention.VFX
|
||||
Broken = SplinePoint.Type.Broken,
|
||||
SmoothFree = SplinePoint.Type.SmoothFree
|
||||
};
|
||||
[Setting, InspectorDraw] public PerformanceIndicator.PerformanceMode performanceMode = PerformanceIndicator.PerformanceMode.Speed;
|
||||
[Content] public List<LinePoint> childPoints = new();
|
||||
|
||||
[Resources, SerializeField, HopeNotNull, InspectorDraw] private SplineComputer m_splineComputer;
|
||||
@@ -100,23 +99,6 @@ namespace Convention.VFX
|
||||
m_splineRenderer = GetComponent<SplineRenderer>();
|
||||
}
|
||||
|
||||
private void LateUpdate()
|
||||
{
|
||||
if ((int)performanceMode >= (int)PerformanceIndicator.PerformanceMode.L6)
|
||||
{
|
||||
RebuildAll();
|
||||
m_splineRenderer.Rebuild();
|
||||
}
|
||||
else if ((int)performanceMode >= (int)PerformanceIndicator.PerformanceMode.L6)
|
||||
{
|
||||
if (childPoints.Count != knots.Count)
|
||||
RebuildAll();
|
||||
else
|
||||
ResetPoints();
|
||||
m_splineRenderer.Rebuild();
|
||||
}
|
||||
}
|
||||
|
||||
public static void SetKnot([In, ArgPackage] ref SplinePoint point, [In, ArgPackage] LinePoint linePoint)
|
||||
{
|
||||
point.position = linePoint.transform.localPosition;
|
||||
|
@@ -34,6 +34,8 @@ MonoBehaviour:
|
||||
- Assembly-CSharp-firstpass
|
||||
- Cinemachine
|
||||
- CW.Common
|
||||
- Dreamteck.Splines
|
||||
- Dreamteck.Utilities
|
||||
- EasySave3
|
||||
- LeanCommon
|
||||
- LeanGUI
|
||||
|
Reference in New Issue
Block a user