Signed-off-by: TRAfoer <lhf190@outlook.com>

This commit is contained in:
2025-07-13 18:24:37 +08:00
parent 7642bf1d9d
commit ee3de2b358
16 changed files with 274 additions and 949 deletions

View File

@@ -96,6 +96,11 @@ namespace Ichni.RhythmGame
base.ApplyTimeOffset(offset);
enabling.animations.ForEach(anim => anim.ApplyTimeOffset(offset));
}
public void OnDestroy()
{
targetTransformSubmodule.eulerAnglesOffset.Add(Vector3.zero);
targetTransformSubmodule.eulerAnglesDirtyMark = true;
}
}
public partial class LookAt

View File

@@ -47,7 +47,7 @@ namespace Ichni.RhythmGame
public void Update()
{
if (SongTime > trackTimeSubmoduleMovable.trackStartTime && SongTime < trackTimeSubmoduleMovable.trackEndTime && track.timeDurationSubmodule.CheckTimeInDuration(SongTime))
if (track.timeDurationSubmodule.CheckTimeInDuration(SongTime))
{
trackPositioner.SetPercent(trackTimeSubmoduleMovable.headPercent);
}

View File

@@ -93,6 +93,11 @@ namespace Ichni.RhythmGame
}
public override void Refresh()
{
EditorRefresh();
path.Rebuild(true);
}
public void EditorRefresh()
{
SetTrackSpaceType((int)trackSpaceType);
SetUpSplineComputer(trackSpaceType, trackSamplingType);
@@ -100,9 +105,7 @@ namespace Ichni.RhythmGame
ClosePath();
path.Rebuild(true);
}
public void SortPathnodeInChildren()//emm待用吧
{
Debug.Log("TrackSort");