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

This commit is contained in:
2025-07-17 16:44:38 +08:00
parent 015a174afc
commit 55af142af3
29 changed files with 17816 additions and 16619 deletions

View File

@@ -43,7 +43,10 @@ namespace Ichni.RhythmGame
UpdateAnimation(EditorManager.instance.songInformation.songTime);
}
}
public virtual Vector3 getValue(float time)
{
return Vector3.zero;
}
/// <summary>
/// 施加时间偏移即移动所有Flexible参数的时间
/// </summary>

View File

@@ -66,7 +66,13 @@ namespace Ichni.RhythmGame
animationReturnType = FlexibleReturnType.MiddleInterval;
}
}
public override Vector3 getValue(float time)
{
float x = positionX.GetValue(time);
float y = positionY.GetValue(time);
float z = positionZ.GetValue(time);
return new Vector3(x, y, z);
}
public override void ApplyTimeOffset(float offset)
{
base.ApplyTimeOffset(offset);

View File

@@ -66,7 +66,13 @@ namespace Ichni.RhythmGame
animationReturnType = FlexibleReturnType.MiddleInterval;
}
}
public override Vector3 getValue(float time)
{
float x = scaleX.GetValue(time);
float y = scaleY.GetValue(time);
float z = scaleZ.GetValue(time);
return new Vector3(x, y, z);
}
public override void ApplyTimeOffset(float offset)
{
base.ApplyTimeOffset(offset);

View File

@@ -65,7 +65,13 @@ namespace Ichni.RhythmGame
animationReturnType = FlexibleReturnType.MiddleInterval;
}
}
public override Vector3 getValue(float time)
{
float x = eulerAngleX.GetValue(time);
float y = eulerAngleY.GetValue(time);
float z = eulerAngleZ.GetValue(time);
return new Vector3(x, y, z);
}
public override void ApplyTimeOffset(float offset)
{
base.ApplyTimeOffset(offset);