小改
This commit is contained in:
31294
Assets/FR2_Cache.asset
31294
Assets/FR2_Cache.asset
File diff suppressed because it is too large
Load Diff
@@ -133,9 +133,9 @@ namespace Ichni.Editor
|
||||
ExpandAnim();
|
||||
if (isExpanded)
|
||||
{
|
||||
float startTime = Time.realtimeSinceStartup;
|
||||
connectedGameElement.childElementList.Sort();//TODO: 后续可以让玩家手动快速排序
|
||||
Debug.Log("排序耗时 " + (Time.realtimeSinceStartup - startTime).ToString());
|
||||
// float startTime = Time.realtimeSinceStartup;
|
||||
// connectedGameElement.childElementList.Sort();//TODO: 后续可以让玩家手动快速排序
|
||||
// Debug.Log("排序耗时 " + (Time.realtimeSinceStartup - startTime).ToString());
|
||||
StartCoroutine(ExpandOverTime());
|
||||
|
||||
}
|
||||
|
||||
@@ -53,6 +53,7 @@ namespace Ichni.RhythmGame
|
||||
|
||||
public partial class TrackPathSubmodule
|
||||
{
|
||||
|
||||
private void SetUpSplineComputer(Track.TrackSpaceType trackSpaceType, Track.TrackSamplingType trackSamplingType)
|
||||
{
|
||||
path.type = (Spline.Type)trackSpaceType;
|
||||
@@ -101,9 +102,27 @@ namespace Ichni.RhythmGame
|
||||
{
|
||||
SetPathNode(pathNode);
|
||||
}
|
||||
|
||||
ClosePath();
|
||||
path.Rebuild(true);
|
||||
}
|
||||
public void SortPathnodeInChildren()//emm待用吧
|
||||
{
|
||||
Debug.Log("TrackSort");
|
||||
track.childElementList.Sort((x, y) =>
|
||||
{
|
||||
// 处理两个都是索引类的情况
|
||||
if (x is PathNode idxX && y is PathNode idxY)
|
||||
return idxX.index.CompareTo(idxY.index);
|
||||
|
||||
// 处理两个都是非索引类的情况 - 保持原顺序
|
||||
if (x is not PathNode && y is not PathNode)
|
||||
return 0;
|
||||
|
||||
// 混合类型处理:索引类排在前面
|
||||
return x is PathNode ? 1 : -1;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
public partial class TrackPathSubmodule
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 164e0d19daa7a6f468776820913d9eda
|
||||
guid: 0fcb60107ebf5574aa5fe168f6e3978e
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user