casting音效播放添加

dev_chengFeng
JieLing 2020-07-16 16:52:43 +08:00
parent 9334944455
commit abde9c93bf
2 changed files with 4 additions and 1 deletions

View File

@ -736,7 +736,6 @@ function this.OnSkillCast(skill)
liveGO:GetComponent("SkeletonGraphic"):DOFade(1, 0)
liveGO:GetComponent("SkeletonGraphic"):DOColor(Color.New(1,1,1,1), 0)
SoundManager.PlaySound(SoundConfig.Sound_MonsterCasting)
BattleManager.PauseBattle()
addDelayRecycleRes("casting_skill", go, 1.6, function ()

View File

@ -874,6 +874,8 @@ function RoleView:PlaySkillCastingEffect(combat, func)
-- 播放casting
self.RootPanel.mySkillCast:SetActive(false)
self.RootPanel.mySkillCast:SetActive(true)
-- 播放casting声音
SoundManager.PlaySound(SoundConfig.Sound_RoleCasting)
-- 技能名
-- local nameBg = Util.GetGameObject(self.RootPanel.mySkillCast, "Canvas/skill")
local name = Util.GetGameObject(self.RootPanel.mySkillCast, "TongYong_Casting_Xia/DongHua/MingZi")
@ -890,6 +892,8 @@ function RoleView:PlaySkillCastingEffect(combat, func)
-- 播放casting
self.RootPanel.enemySkillCast:SetActive(false)
self.RootPanel.enemySkillCast:SetActive(true)
-- 播放casting声音
SoundManager.PlaySound(SoundConfig.Sound_MonsterCasting)
-- 技能名
local name = Util.GetGameObject(self.RootPanel.enemySkillCast, "TongYong_Casting_Shang/DongHua/MingZi")
if combat.skillname and combat.skillname ~= "" then