IndieGame/client/Assets/Ether/Scripts/Module/Audio/SceneSoundData.cs

37 lines
792 B
C#
Raw Normal View History

2024-10-11 10:12:15 +08:00
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;
}
}