Files
UmaViewer/Assets/Scripts/Audio/CRIMW/CriScript/LoadSound.cs
T
katboi01 662ee9f865 Config file
Configurable file path, language.
2022-12-28 14:29:18 +01:00

25 lines
646 B
C#

using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
public class LoadSound : ScriptableObject
{
UmaViewerMain Main => UmaViewerMain.Instance;
public struct UmaSoundInfo
{
public string acbPath;
public string awbPath;
}
public UmaSoundInfo getSoundPath(string name) {
UmaSoundInfo info;
info.acbPath = Main.AbSounds.FirstOrDefault(a => a.Name.Contains(name) && a.Name.EndsWith("acb")).FilePath;
info.awbPath = Main.AbSounds.FirstOrDefault(a => a.Name.Contains(name) && a.Name.EndsWith("awb")).FilePath;
return info;
}
}