casting音效播放添加
parent
9334944455
commit
abde9c93bf
|
@ -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 ()
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue