hold修闪烁

This commit is contained in:
SoulliesOfficial
2025-05-10 14:27:10 -04:00
parent c5e8908b47
commit 9e65c7eea0
13 changed files with 1870 additions and 243 deletions

View File

@@ -34,6 +34,7 @@ namespace Ichni.RhythmGame
hold.track = track;
hold.trackPositioner = hold.AddComponent<SplinePositioner>();
hold.trackPositioner.spline = track.trackPathSubmodule.path;
hold.trackPositioner.updateMethod = SplineUser.UpdateMethod.LateUpdate;
hold.isOnTrack = true;
hold.UpdateNoteInTrack();
}
@@ -132,10 +133,10 @@ namespace Ichni.RhythmGame
return;
}
if (isOnTrack)
/*if (isOnTrack)
{
UpdateNoteInTrack();
}
}*/
float songTime = EditorManager.instance.songInformation.songTime;
@@ -208,6 +209,14 @@ namespace Ichni.RhythmGame
}
}
}
private void LateUpdate()
{
if (isOnTrack)
{
UpdateNoteInTrack();
}
}
}
namespace Beatmap

View File

@@ -1,5 +1,7 @@
using System;
using System.Collections;
using System.Collections.Generic;
using Ichni.Editor;
using UnityEngine;
namespace Ichni.RhythmGame
@@ -28,6 +30,26 @@ namespace Ichni.RhythmGame
selectSubmodule = new SelectSubmodule(this, note);
}
public override void SetUpInspector()
{
base.SetUpInspector();
IHaveInspection inspector = EditorManager.instance.uiManager.inspector;
var container = inspector.GenerateContainer("Generate");
var generateAnimation = container.GenerateSubcontainer(3);
var displacementButton = inspector.GenerateButton(this, generateAnimation, "Displacement",
() => Displacement.GenerateElement("New Displacement", Guid.NewGuid(), new List<string>(), true, this,
new FlexibleFloat(), new FlexibleFloat(), new FlexibleFloat()));
var swirlButton = inspector.GenerateButton(this, generateAnimation, "Swirl",
() => Swirl.GenerateElement("New Swirl", Guid.NewGuid(), new List<string>(), true, this,
new FlexibleFloat(), new FlexibleFloat(), new FlexibleFloat()));
var scaleButton = inspector.GenerateButton(this, generateAnimation, "Scale", () =>
{
Scale.GenerateElement("New Scale", Guid.NewGuid(), new List<string>(), true, this,
new FlexibleFloat(), new FlexibleFloat(), new FlexibleFloat());
}); //缩放
}
public virtual void Recover()
{