更新
This commit is contained in:
@@ -10,8 +10,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)
|
||||
@@ -77,11 +77,16 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
|
||||
public override void SetHighlight()
|
||||
{
|
||||
List<Renderer> partRendererList = notePartList.Select(part => part.GetComponent<Renderer>()).ToList();
|
||||
//List<Renderer> partRendererList = notePartList.Select(part => part.GetComponent<Renderer>()).ToList();
|
||||
|
||||
//partRendererList.ForEach(rend => Destroy(rend.material));
|
||||
|
||||
if (!isHighlighted)
|
||||
if (note is Tap or Hold)
|
||||
{
|
||||
extraPartList[0].gameObject.SetActive(isHighlighted);
|
||||
}
|
||||
|
||||
/*if (!isHighlighted)
|
||||
{
|
||||
for (int i = 0; i < partRendererList.Count; i++)
|
||||
{
|
||||
@@ -94,7 +99,7 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
{
|
||||
partRendererList[i].material = Instantiate(highlightMaterialList[i]);
|
||||
}
|
||||
}
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user