基础内容-5

主题包;
测试NoteVisual与NoteEffect;
LookAt旋转动画与FlexibleBool
动画杂项
控制台初步
This commit is contained in:
SoulliesOfficial
2025-01-29 23:49:18 -05:00
parent 7520983b20
commit 39b4a5e7ff
102 changed files with 3492 additions and 261 deletions

View File

@@ -1,5 +1,6 @@
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using Dreamteck.Splines;
using Lean.Pool;
using UniRx;
@@ -15,6 +16,8 @@ namespace Ichni.RhythmGame
public Track track;
public SplinePositioner trackPositioner;
public FlexibleFloat trackPercent;
private bool isBeyond1 = false;
public static TrackPercentPoint GenerateElement(string elementName, Track track, FlexibleFloat trackPercent)
{
@@ -23,6 +26,8 @@ namespace Ichni.RhythmGame
point.NewInitialize(elementName, track, trackPercent);
point.SetParent(track);
point.isBeyond1 = trackPercent.animations.Any(animation => animation.endValue > 1);//判断是否有超过1的动画超过1将会循环
return point;
}
@@ -42,7 +47,14 @@ namespace Ichni.RhythmGame
trackPercent.UpdateFlexibleFloat(EditorManager.instance.songModule.songTime);
if (trackPercent.returnType == FlexibleReturnType.MiddleExecuting)
{
trackPositioner.SetPercent(trackPercent.value);
float finalValue = trackPercent.value;
if (isBeyond1)
{
finalValue -= Mathf.Floor(finalValue);
}
trackPositioner.SetPercent(finalValue);
}
}
}