parent
a834b484db
commit
9549808087
|
@ -208,7 +208,10 @@ end
|
|||
|
||||
local heroConfig=nil
|
||||
function MonsterView:OnSkillCastStart(skill)
|
||||
-- self.RoleLiveGO:SetActive(true)
|
||||
-- if self.isMainPlayer then
|
||||
|
||||
-- self.RoleLiveGO:SetActive(true)
|
||||
-- end
|
||||
local name=nil
|
||||
local roleConfig=nil
|
||||
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.gameObject:SetActive(true)
|
||||
|
||||
self.castingNameNode:GetComponent("Text").text =self.config.Name
|
||||
else
|
||||
self.lingshouIcon.gameObject:SetActive(false)
|
||||
end
|
||||
|
@ -279,7 +282,7 @@ function MonsterView:OnSkillPlay()
|
|||
end
|
||||
--
|
||||
function MonsterView:OnSkillEnd()
|
||||
--self.RoleLiveGO:SetActive(false)
|
||||
-- self.RoleLiveGO:SetActive(false)
|
||||
if heroConfig then
|
||||
self.GameObject:SetActive(false)
|
||||
end
|
||||
|
|
|
@ -571,7 +571,7 @@ function SkillCaster:CheckFullSceenSkill(combat, skill,skillduration)
|
|||
-- if self:CheckRotate(go2, combat.Orientation) then
|
||||
-- offset = -offset
|
||||
-- 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.anchoredPosition = offset
|
||||
go2:SetActive(true)
|
||||
|
@ -590,7 +590,7 @@ function SkillCaster:CheckFullSceenSkill(combat, skill,skillduration)
|
|||
compnet.AnimationState.Complete = compnet.AnimationState.Complete
|
||||
--self.owner:PlaySpineAnim (compnet,0,"attack",false)
|
||||
end
|
||||
BattleManager.AddDelayRecycleRes(combat.Bullet, go2, skillduration/1000)
|
||||
BattleManager.AddDelayRecycleRes(combat.Bullet, go2, combat.BulletTime/1000)
|
||||
|
||||
|
||||
-- 会自己动的指定目标特效
|
||||
|
|
Loading…
Reference in New Issue