GetAllNotes

This commit is contained in:
SoulliesOfficial
2025-04-30 22:20:44 -04:00
parent 40f6d7ccdd
commit a662b28e17
6 changed files with 65 additions and 1484 deletions

View File

@@ -4,6 +4,7 @@ using System.Collections.Generic;
using Ichni.Editor;
using Ichni.RhythmGame.Beatmap;
using Lean.Pool;
using Sirenix.OdinInspector;
using UnityEngine;
namespace Ichni.RhythmGame
@@ -292,6 +293,29 @@ namespace Ichni.RhythmGame
SetOnlyStartEndPathNodeSphereEnabled);
}
}
public partial class Track
{
[Button("Test GetAllNotes")]
public List<NoteBase> GetAllNotes()
{
List<NoteBase> notes = new List<NoteBase>();
foreach (GameElement element in childElementList)
{
if (element is NoteBase note)
{
notes.Add(note);
}
}
foreach (NoteBase note in notes)
{
Debug.Log(note.GetType() + " " + note.elementName + " " + note.exactJudgeTime);
}
return notes;
}
}
public partial class Track
{