修noteprefab和submodule
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user