IndieGame/client/Assets/Ether/Scripts/Module/Audio/SceneSoundData.cs
DOBEST\zhaoyingjie f242607587 初始化工程
2024-10-11 10:12:15 +08:00

37 lines
792 B
C#

using Sirenix.OdinInspector;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Ether
{
[Serializable]
public class SceneSoundData
{
[VerticalGroup("场景"), HideLabel]
[ValueDropdown("@ConstName.SceneNameList")]
public string sceneName;
[VerticalGroup("音效")]
[LabelText("音效列表")]
[TableList(ShowIndexLabels = true)]
public List<SoundData> soundDataList;
}
[Serializable]
public class SoundData
{
[VerticalGroup("音效名"), HideLabel]
[ValueDropdown("@ConstName.AudioNameList")]
public string name;
[VerticalGroup("音量"), HideLabel]
[Range(0f, 1f)]
public float volum = 1;
}
}