xiejun 2024-02-23 22:33:11 +08:00
parent a834b484db
commit 9549808087
2 changed files with 8 additions and 5 deletions

View File

@ -208,7 +208,10 @@ end
local heroConfig=nil local heroConfig=nil
function MonsterView:OnSkillCastStart(skill) function MonsterView:OnSkillCastStart(skill)
-- self.RoleLiveGO:SetActive(true) -- if self.isMainPlayer then
-- self.RoleLiveGO:SetActive(true)
-- end
local name=nil local name=nil
local roleConfig=nil local roleConfig=nil
if skill and skill.id and skill.id~=0 then if skill and skill.id and skill.id~=0 then
@ -264,7 +267,7 @@ function MonsterView:OnSkillCastStart(skill)
self.lingshouIcon:GetComponent("Image").sprite=self.spLoader:LoadSprite(GetResourcePath(self.config.Picture)) self.lingshouIcon:GetComponent("Image").sprite=self.spLoader:LoadSprite(GetResourcePath(self.config.Picture))
self.lingshouIcon.gameObject:SetActive(true) self.lingshouIcon.gameObject:SetActive(true)
self.castingNameNode:GetComponent("Text").text =self.config.Name
else else
self.lingshouIcon.gameObject:SetActive(false) self.lingshouIcon.gameObject:SetActive(false)
end end
@ -279,7 +282,7 @@ function MonsterView:OnSkillPlay()
end end
-- --
function MonsterView:OnSkillEnd() function MonsterView:OnSkillEnd()
--self.RoleLiveGO:SetActive(false) -- self.RoleLiveGO:SetActive(false)
if heroConfig then if heroConfig then
self.GameObject:SetActive(false) self.GameObject:SetActive(false)
end end

View File

@ -571,7 +571,7 @@ function SkillCaster:CheckFullSceenSkill(combat, skill,skillduration)
-- if self:CheckRotate(go2, combat.Orientation) then -- if self:CheckRotate(go2, combat.Orientation) then
-- offset = -offset -- offset = -offset
-- end -- end
go2.transform.localScale = Vector3.New(1,1,1) go2.transform.localScale = Vector3.New(combat.HitScale[1]/1000,combat.HitScale[2]/1000,1)
go2.transform.localPosition = Vector3.zero go2.transform.localPosition = Vector3.zero
go2.transform.anchoredPosition = offset go2.transform.anchoredPosition = offset
go2:SetActive(true) go2:SetActive(true)
@ -590,7 +590,7 @@ function SkillCaster:CheckFullSceenSkill(combat, skill,skillduration)
compnet.AnimationState.Complete = compnet.AnimationState.Complete compnet.AnimationState.Complete = compnet.AnimationState.Complete
--self.owner:PlaySpineAnim (compnet,0,"attack",false) --self.owner:PlaySpineAnim (compnet,0,"attack",false)
end end
BattleManager.AddDelayRecycleRes(combat.Bullet, go2, skillduration/1000) BattleManager.AddDelayRecycleRes(combat.Bullet, go2, combat.BulletTime/1000)
-- 会自己动的指定目标特效 -- 会自己动的指定目标特效