基础内容11 - SAVE LOAD EXPORT
This commit is contained in:
@@ -100,7 +100,7 @@ namespace Ichni.RhythmGame
|
||||
|
||||
public override void ExecuteBM()
|
||||
{
|
||||
BaseColorChange.GenerateElement(elementName, elementGuid, tags, false,
|
||||
matchedElement = BaseColorChange.GenerateElement(elementName, elementGuid, tags, false,
|
||||
GetElement(attachedElementGuid), colorR.ConvertToGameType(),
|
||||
colorG.ConvertToGameType(), colorB.ConvertToGameType(), colorA.ConvertToGameType());
|
||||
}
|
||||
|
||||
@@ -101,7 +101,7 @@ namespace Ichni.RhythmGame
|
||||
|
||||
public override void ExecuteBM()
|
||||
{
|
||||
EmissionColorChange.GenerateElement(elementName, elementGuid, tags, false, GetElement(attachedElementGuid),
|
||||
matchedElement = EmissionColorChange.GenerateElement(elementName, elementGuid, tags, false, GetElement(attachedElementGuid),
|
||||
colorR.ConvertToGameType(), colorG.ConvertToGameType(), colorB.ConvertToGameType(), colorI.ConvertToGameType());
|
||||
}
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@ namespace Ichni.RhythmGame
|
||||
|
||||
public override void ExecuteBM()
|
||||
{
|
||||
TrackTotalTimeChange.GenerateElement(elementName, elementGuid, tags, false,
|
||||
matchedElement = TrackTotalTimeChange.GenerateElement(elementName, elementGuid, tags, false,
|
||||
GetElement(attachedElementGuid) as Track, totalTime.ConvertToGameType());
|
||||
}
|
||||
|
||||
|
||||
@@ -46,9 +46,18 @@ namespace Ichni.RhythmGame
|
||||
positionY.UpdateFlexibleFloat(songTime);
|
||||
positionZ.UpdateFlexibleFloat(songTime);
|
||||
|
||||
if (positionX.returnType is FlexibleReturnType.MiddleExecuting ||
|
||||
positionY.returnType is FlexibleReturnType.MiddleExecuting ||
|
||||
positionZ.returnType is FlexibleReturnType.MiddleExecuting)
|
||||
if (positionX.returnType is FlexibleReturnType.After or FlexibleReturnType.Before
|
||||
or FlexibleReturnType.MiddleInterval or FlexibleReturnType.None &&
|
||||
positionY.returnType is FlexibleReturnType.After or FlexibleReturnType.Before
|
||||
or FlexibleReturnType.MiddleInterval or FlexibleReturnType.None &&
|
||||
positionZ.returnType is FlexibleReturnType.After or FlexibleReturnType.Before
|
||||
or FlexibleReturnType.MiddleInterval or FlexibleReturnType.None)
|
||||
{
|
||||
// Out of range, do nothing
|
||||
}
|
||||
else if (positionX.returnType is FlexibleReturnType.MiddleExecuting or FlexibleReturnType.After or FlexibleReturnType.Before ||
|
||||
positionY.returnType is FlexibleReturnType.MiddleExecuting or FlexibleReturnType.After or FlexibleReturnType.Before ||
|
||||
positionZ.returnType is FlexibleReturnType.MiddleExecuting or FlexibleReturnType.After or FlexibleReturnType.Before)
|
||||
{
|
||||
animationReturnType = FlexibleReturnType.MiddleExecuting;
|
||||
Vector3 currentPosition = new Vector3(positionX.value, positionY.value, positionZ.value);
|
||||
@@ -59,18 +68,6 @@ namespace Ichni.RhythmGame
|
||||
{
|
||||
animationReturnType = FlexibleReturnType.MiddleInterval;
|
||||
}
|
||||
|
||||
//本体使用,用于判断动画是否结束
|
||||
// else if (positionX.returnType is FlexibleReturnType.After or FlexibleReturnType.None &&
|
||||
// positionY.returnType is FlexibleReturnType.After or FlexibleReturnType.None &&
|
||||
// positionZ.returnType is FlexibleReturnType.After or FlexibleReturnType.None)
|
||||
// {
|
||||
// animationReturnType = FlexibleReturnType.After;
|
||||
// float3 currentPosition = new float3(positionX.value, positionY.value, positionZ.value);
|
||||
// targetTransformSubmodule.positionOffset.Add(currentPosition);
|
||||
// targetTransformSubmodule.positionDirtyMark = true;
|
||||
// Destroy(gameObject);
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -105,7 +102,7 @@ namespace Ichni.RhythmGame
|
||||
|
||||
public override void ExecuteBM()
|
||||
{
|
||||
Displacement.GenerateElement(elementName, elementGuid, tags, false, GetElement(attachedElementGuid),
|
||||
matchedElement = Displacement.GenerateElement(elementName, elementGuid, tags, false, GetElement(attachedElementGuid),
|
||||
positionX.ConvertToGameType(), positionY.ConvertToGameType(), positionZ.ConvertToGameType());
|
||||
}
|
||||
|
||||
|
||||
@@ -93,7 +93,7 @@ namespace Ichni.RhythmGame
|
||||
|
||||
public override void ExecuteBM()
|
||||
{
|
||||
Scale.GenerateElement(elementName, elementGuid, tags, false, GetElement(attachedElementGuid),
|
||||
matchedElement = Scale.GenerateElement(elementName, elementGuid, tags, false, GetElement(attachedElementGuid),
|
||||
scaleX.ConvertToGameType(), scaleY.ConvertToGameType(), scaleZ.ConvertToGameType());
|
||||
}
|
||||
|
||||
|
||||
@@ -94,7 +94,7 @@ namespace Ichni.RhythmGame
|
||||
|
||||
public override void ExecuteBM()
|
||||
{
|
||||
Swirl.GenerateElement(elementName, elementGuid, tags, false, GetElement(attachedElementGuid),
|
||||
matchedElement = Swirl.GenerateElement(elementName, elementGuid, tags, false, GetElement(attachedElementGuid),
|
||||
eulerAngleX.ConvertToGameType(), eulerAngleY.ConvertToGameType(), eulerAngleZ.ConvertToGameType());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user