update
This commit is contained in:
@@ -9,8 +9,8 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
{
|
||||
public partial class DTMNoteVisual : NoteVisualBase
|
||||
{
|
||||
public List<Material> normalMaterialList;
|
||||
public List<Material> highlightMaterialList;
|
||||
public List<List<Material>> normalMaterialList;
|
||||
public List<List<Material>> highlightMaterialList;
|
||||
|
||||
public new static DTMNoteVisual GenerateElement(string elementName, Guid id, List<string> tags,
|
||||
bool isFirstGenerated, string themeBundleName, string objectName, GameElement parentElement, bool isHighlighted)
|
||||
@@ -27,7 +27,7 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
if (note == null) throw new System.Exception("NoteVisual只能生成在Note下。");
|
||||
this.note = note;
|
||||
note.noteVisual = this;
|
||||
|
||||
|
||||
if (note is Flick flick)
|
||||
{
|
||||
flick.availableFlickDirections = new List<Vector2>() { Vector2.left, Vector2.right };
|
||||
@@ -76,14 +76,20 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
{
|
||||
for (int i = 0; i < partRendererList.Count; i++)
|
||||
{
|
||||
partRendererList[i].material = normalMaterialList[i];
|
||||
for (int j = 0; j < partRendererList[i].materials.Length; j++)
|
||||
{
|
||||
partRendererList[i].materials[j] = normalMaterialList[i][j];
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
for (int i = 0; i < partRendererList.Count; i++)
|
||||
{
|
||||
partRendererList[i].material = highlightMaterialList[i];
|
||||
for (int j = 0; j < partRendererList[i].materials.Length; j++)
|
||||
{
|
||||
partRendererList[i].materials[j] = highlightMaterialList[i][j];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -59,7 +59,9 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
Renderer rend = part.GetComponent<Renderer>();
|
||||
if (rend != null)
|
||||
{
|
||||
rend.material.SetFloat("_MainAlpha", 1f);
|
||||
rend.materials[0].SetFloat("_MainAlpha", 1f);
|
||||
rend.materials[1].SetFloat("_MainAlpha", 1f);
|
||||
note.track.trackPathSubmodule.path.RebuildImmediate();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user