refactor: Update Unity to 2022.3.62
This commit is contained in:
@@ -8,7 +8,7 @@ namespace Cryville.Crtr.Event {
|
||||
protected override TransformHandler Parent { get { return null; } }
|
||||
|
||||
readonly Chart chart;
|
||||
readonly List<LibavFileAudioSource> sounds = new List<LibavFileAudioSource>();
|
||||
readonly List<LibavFileAudioSource> sounds = new();
|
||||
|
||||
public ChartHandler(Chart _chart) {
|
||||
chart = _chart;
|
||||
@@ -25,8 +25,7 @@ namespace Cryville.Crtr.Event {
|
||||
if (s.CloneType == 16) {
|
||||
if (ev == null) { }
|
||||
else if (ev.Unstamped == null) { }
|
||||
else if (ev.Unstamped is Chart.Sound) {
|
||||
Chart.Sound tev = (Chart.Sound)ev.Unstamped;
|
||||
else if (ev.Unstamped is Chart.Sound tev) {
|
||||
var dir = new DirectoryInfo(Path.Combine(Game.GameDataPath, "songs", StringUtils.EscapeFileName(tev.id)));
|
||||
var files = dir.GetFiles();
|
||||
var source = new LibavFileAudioSource(files[0].FullName);
|
||||
|
Reference in New Issue
Block a user