修noteprefab和submodule

This commit is contained in:
SoulliesOfficial
2025-05-10 23:28:21 -04:00
parent 9e65c7eea0
commit ab2f79090e
19 changed files with 163 additions and 78 deletions

View File

@@ -25,8 +25,7 @@ namespace Ichni.RhythmGame
Track.TrackSamplingType trackSamplingType, bool isClosed, bool isShowingDisplay) : base(track)
{
this.path = track.AddComponent<SplineComputer>();
this.track.trackPathSubmodule = this;
this.pathNodeList = new List<PathNode>();
this.trackSpaceType = trackSpaceType;
this.trackSamplingType = trackSamplingType;
@@ -43,6 +42,11 @@ namespace Ichni.RhythmGame
this.trackDisplay.size = 0.1f;
this.SetDisplay(isShowingDisplay);
if (!HaveSameSubmodule)
{
this.track.trackPathSubmodule = this;
}
}
}

View File

@@ -25,12 +25,16 @@ namespace Ichni.RhythmGame
public TrackRendererSubmodule(Track track, bool enableEmission, float emissionIntensity, bool zWrite) : base(track)
{
this.track.trackRendererSubmodule = this;
this.enableEmission = enableEmission;
this.emissionIntensity = emissionIntensity;
this.materialThemeBundleName = String.Empty;
this.materialName = String.Empty;
this.zWrite = zWrite;
if (!HaveSameSubmodule)
{
this.track.trackRendererSubmodule = this;
}
}
public void ApplyMaterial(string materialThemeBundleName, string materialName)

View File

@@ -11,8 +11,10 @@ namespace Ichni.RhythmGame
public TrackTimeSubmodule(Track track) : base(track)
{
this.track = track;
this.track.trackTimeSubmodule = this;
if (!HaveSameSubmodule)
{
this.track.trackTimeSubmodule = this;
}
}
public override void SaveBM()