Signed-off-by: TRAfoer <lhf190@outlook.com>
This commit is contained in:
@@ -43,7 +43,10 @@ namespace Ichni.RhythmGame
|
||||
UpdateAnimation(EditorManager.instance.songInformation.songTime);
|
||||
}
|
||||
}
|
||||
|
||||
public virtual Vector3 getValue(float time)
|
||||
{
|
||||
return Vector3.zero;
|
||||
}
|
||||
/// <summary>
|
||||
/// 施加时间偏移,即移动所有Flexible参数的时间
|
||||
/// </summary>
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user