灵兽释放技能修改

onepiece_demo_arena
wangzhenxing 2024-01-19 17:49:23 +08:00
parent afa8b22a65
commit bd7d0d54ff
1 changed files with 17 additions and 8 deletions

View File

@ -135,9 +135,13 @@ function MonsterView:onCreate(go, role, position, root)
self.RoleLiveGOGraphic2.AnimationState:SetAnimation(0, "idle", true) self.RoleLiveGOGraphic2.AnimationState:SetAnimation(0, "idle", true)
self.RoleLiveGOTran2.sizeDelta = Vector2.New(1000, 1000) self.RoleLiveGOTran2.sizeDelta = Vector2.New(1000, 1000)
else else
if self.lingshouIcon then --LogError("self.config.Picture==============="..self.config.Picture)
if self.lingshouIcon and self.config.Picture then
self.lingshouIcon.gameObject:SetActive(true) self.lingshouIcon.gameObject:SetActive(true)
self.lingshouIcon:GetComponent("Image").sprite=self.spLoader:LoadSprite(GetResourcePath(self.config.Picture)) self.lingshouIcon:GetComponent("Image").sprite=self.spLoader:LoadSprite(GetResourcePath(self.config.Picture))
else
self.lingshouIcon.gameObject:SetActive(false)
end end
end end
-- 创建技能播放器 -- 创建技能播放器
@ -252,8 +256,13 @@ function MonsterView:OnSkillCastStart(skill)
self.castingNameNode:GetComponent("Text").text = string.format("%s奥义卡",heroConfig.ReadingName) self.castingNameNode:GetComponent("Text").text = string.format("%s奥义卡",heroConfig.ReadingName)
local eid = BattleManager.GetCombatIdBySkin(skill.id, skill.owner.skinId) local eid = BattleManager.GetCombatIdBySkin(skill.id, skill.owner.skinId)
self.combat = BattleManager.GetSkillCombat(eid) self.combat = BattleManager.GetSkillCombat(eid)
else
if self.isMainPlayer then
self.lingshouIcon:SetActive(false)
else else
self.lingshouIcon:SetActive(true) self.lingshouIcon:SetActive(true)
end
self.RoleLiveGO3=nil self.RoleLiveGO3=nil
end end
end end