SoundSystem = SoundSystem or {} SoundSystem.ESound = { Scoll = 1, Click = 2, Btn = 3, Kill = 4, Kill2 = 5, Kill3 = 6, Incentive = 7, ActiveMechanism = 8, MechanismKill = 9, OK = 10, } SoundSystem.SoundList = { [SoundSystem.ESound.Scoll] = '/Game/WwiseEvent/UI/Play_UI_Item_Change.Play_UI_Item_Change', [SoundSystem.ESound.Click] = UGCGameSystem.GetUGCResourcesFullPath('Asset/WwiseEvent/AK_ButtonClick_1.AK_ButtonClick_1'), [SoundSystem.ESound.Btn] = UGCGameSystem.GetUGCResourcesFullPath('Asset/WwiseEvent/AK_ButtonClick_1.AK_ButtonClick_1'), [SoundSystem.ESound.Kill] = UGCGameSystem.GetUGCResourcesFullPath('Asset/WwiseEvent/Audio_Kill.Audio_Kill'), [SoundSystem.ESound.Kill2] = UGCGameSystem.GetUGCResourcesFullPath('Asset/WwiseEvent/AK_Kill2_1.AK_Kill2_1'), [SoundSystem.ESound.Kill3] = UGCGameSystem.GetUGCResourcesFullPath('Asset/WwiseEvent/AK_Kill3_1.AK_Kill3_1'), [SoundSystem.ESound.Incentive] = '/Game/WwiseEvent/UI/Play_UI_Champion.Play_UI_Champion', [SoundSystem.ESound.ActiveMechanism] = UGCGameSystem.GetUGCResourcesFullPath('Asset/WwiseEvent/AK_ActiveMechanism_1.AK_ActiveMechanism_1'), --[SoundSystem.ESound.MechanismKill] = UGCGameSystem.GetUGCResourcesFullPath('Asset/WwiseEvent/AK_MechanismKill_1.AK_MechanismKill_1'), [SoundSystem.ESound.OK] = UGCGameSystem.GetUGCResourcesFullPath('Asset/WwiseEvent/AK_OK_2.AK_OK_2'), } function SoundSystem.PlaySound(SoundType) if SoundSystem.SoundList[SoundType] ~= nil then local AKSound = UGCSystemLibrary.LoadAsset(SoundSystem.SoundList[SoundType], true) UGCSoundManagerSystem.PlaySound2D(AKSound) end end