【逍遥游】筛子摇动和事件触发音效添加

dev_chengFeng hotfix/xma/local/1.1.12
gaoxin 2020-10-20 17:43:18 +08:00
parent b5b8f79dca
commit 619ce2ea52
6 changed files with 55 additions and 1 deletions

View File

@ -0,0 +1,22 @@
fileFormatVersion: 2
guid: d7791a87f162eb242b0784399ac12f56
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,22 @@
fileFormatVersion: 2
guid: 6c95bc9b7c12ef249bee45b1c4a4ad7f
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:

View File

@ -78,4 +78,8 @@ SoundConfig = {
Ambient_Carbon = "Amb_02",
Ambient_Login = "Amb_03",
Sound_UnlockLevel ="UI_UnlockLevel_01",
Sound_UI_TiShi = "UI_tishi",
Sound_UI_ShaiZi = "UI_shaizi",
}

View File

@ -200,6 +200,8 @@ end
function this.PlaySaiziAnim(_data)
this.startBtn:GetComponent("Button").enabled=false
Log("当前骰子数:"..#_data.pointes)
-- 骰子音效
SoundManager.PlaySound(SoundConfig.Sound_UI_ShaiZi)
if #_data.pointes>1 then
this.twoSaiZiEffect:SetActive(true)
else
@ -322,7 +324,11 @@ function this.EventTrigger(_data)
this.SetEventBtn(_data)
elseif _data.pathType==7 then --终极大奖
UIManager.OpenPanel(UIName.XiaoYaoEventPanel,0,_data.drop)
end
end
-- 除普通节点都播放提示音
if _data.pathType ~= 0 then
SoundManager.PlaySound(SoundConfig.Sound_UI_TiShi)
end
if _data.drop.itemlist and #_data.drop.itemlist > 0 and _data.pathType~=7 then
local content = {}
for i = 1, #_data.drop.itemlist do