发现JudgementEffect存在瞬间消失的问题

This commit is contained in:
2025-12-02 16:23:56 +08:00
parent c09a728f98
commit 00729395a3
3 changed files with 17 additions and 6 deletions

View File

@@ -85,6 +85,15 @@ namespace Demo
public IEffectHookObject.InteractiveEffectType InteractableScoreInterval => IEffectHookObject.InteractiveEffectType.InteractableScoreInterval;
public IEffectHookObject.InteractiveEffectType InteractableIntervalThatCanScoreBest => IEffectHookObject.InteractiveEffectType.InteractableIntervalThatCanScoreBest;
}
public class IInteractionJudgementLevelInstance
{
public static IInteractionJudgementLevelInstance instance = new();
public IInteraction.JudgementLevel Bad => IInteraction.JudgementLevel.Bad;
public IInteraction.JudgementLevel ScoreLevel => IInteraction.JudgementLevel.ScoreLevel;
public IInteraction.JudgementLevel None => IInteraction.JudgementLevel.None;
public IInteraction.JudgementLevel BestLevel => IInteraction.JudgementLevel.BestLevel;
}
}
public partial class ScriptableObject : IScriptableObject
@@ -509,7 +518,9 @@ namespace Demo
{ $"Spline{nameof(Spline.Type)}",
new() { data = PrivateType.SplineTypeInstance.instance, type = typeof(PrivateType.SplineTypeInstance)} },
{ nameof(IEffectHookObject.InteractiveEffectType),
new() { data = PrivateType.IEffectHookObjectInstance.instance, type = typeof(PrivateType.IEffectHookObjectInstance)} }
new() { data = PrivateType.IEffectHookObjectInstance.instance, type = typeof(PrivateType.IEffectHookObjectInstance)} },
{ nameof(IInteraction.JudgementLevel),
new() { data = PrivateType.IInteractionJudgementLevelInstance.instance, type = typeof(PrivateType.IInteractionJudgementLevelInstance) } }
};
foreach (var ir in engine.RunAsync(script, importClass, variables).Yield())