@@ -35,6 +35,7 @@ namespace Ichni.RhythmGame
|
||||
|
||||
this.path.sampleRate = 8;
|
||||
this.path.updateMode = SplineComputer.UpdateMode.LateUpdate;
|
||||
this.path.enabled = false;
|
||||
SetUpSplineComputer(this.trackSpaceType, this.trackSamplingType);
|
||||
//闭合路径在PathNode生成时执行,在初始化的情况下,PathNode数量为0,不会执行闭合操作
|
||||
|
||||
@@ -109,4 +110,4 @@ namespace Ichni.RhythmGame
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -52,12 +52,12 @@ namespace Ichni.RhythmGame
|
||||
this.materialThemeBundleName = materialThemeBundleName;
|
||||
this.materialName = materialName;
|
||||
Material mat = ThemeBundleManager.instance.GetObject<Material>(materialThemeBundleName, materialName);
|
||||
if(mat != null)
|
||||
if (mat != null)
|
||||
{
|
||||
renderMaterial = mat;
|
||||
meshRenderer.material = renderMaterial;
|
||||
}
|
||||
|
||||
|
||||
meshRenderer.InitializeShader();
|
||||
}
|
||||
|
||||
@@ -88,7 +88,7 @@ namespace Ichni.RhythmGame
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
track.dirtyMarkSubmodule?.MarkDirty();
|
||||
/*if (forceImmediateRebuild)
|
||||
{
|
||||
meshGenerator.RebuildImmediate();
|
||||
|
||||
@@ -36,6 +36,7 @@ namespace Ichni.RhythmGame
|
||||
this.uvMode = MeshGenerator.UVMode.UniformClip;
|
||||
|
||||
SetMesh();
|
||||
this.splineRenderer.enabled = false;
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -35,6 +35,7 @@ namespace Ichni.RhythmGame
|
||||
this.uvMode = MeshGenerator.UVMode.UniformClip;
|
||||
|
||||
SetMesh();
|
||||
this.pathGenerator.enabled = false;
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -34,6 +34,7 @@ namespace Ichni.RhythmGame
|
||||
this.surface.uvMode = MeshGenerator.UVMode.UniformClip;
|
||||
|
||||
SetMesh();
|
||||
this.surface.enabled = false;
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -37,6 +37,7 @@ namespace Ichni.RhythmGame
|
||||
this.tubeGenerator.uvMode = MeshGenerator.UVMode.UniformClip;
|
||||
|
||||
SetMesh();
|
||||
this.tubeGenerator.enabled = false;
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -110,7 +110,7 @@ namespace Ichni.RhythmGame
|
||||
return Mathf.Clamp01(per);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
#region [行为重写] Behavior Overrides
|
||||
public override void Refresh()
|
||||
{
|
||||
@@ -149,7 +149,7 @@ namespace Ichni.RhythmGame
|
||||
//timeDurationSubmodule 根据下辖Note的时间来设置
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
#region [行为重写] Behavior Overrides
|
||||
public override void Refresh()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user