灵兽释放技能修改
parent
afa8b22a65
commit
bd7d0d54ff
|
@ -135,9 +135,13 @@ function MonsterView:onCreate(go, role, position, root)
|
|||
self.RoleLiveGOGraphic2.AnimationState:SetAnimation(0, "idle", true)
|
||||
self.RoleLiveGOTran2.sizeDelta = Vector2.New(1000, 1000)
|
||||
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:GetComponent("Image").sprite=self.spLoader:LoadSprite(GetResourcePath(self.config.Picture))
|
||||
else
|
||||
self.lingshouIcon.gameObject:SetActive(false)
|
||||
end
|
||||
end
|
||||
-- 创建技能播放器
|
||||
|
@ -252,8 +256,13 @@ function MonsterView:OnSkillCastStart(skill)
|
|||
self.castingNameNode:GetComponent("Text").text = string.format("%s奥义卡",heroConfig.ReadingName)
|
||||
local eid = BattleManager.GetCombatIdBySkin(skill.id, skill.owner.skinId)
|
||||
self.combat = BattleManager.GetSkillCombat(eid)
|
||||
else
|
||||
if self.isMainPlayer then
|
||||
self.lingshouIcon:SetActive(false)
|
||||
else
|
||||
self.lingshouIcon:SetActive(true)
|
||||
end
|
||||
|
||||
self.RoleLiveGO3=nil
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue