DESKTOP-MMO982B\User 2025-08-06 23:39:30 +07:00
parent 298570b3fe
commit eed480f711
3 changed files with 7 additions and 6 deletions

View File

@ -479,7 +479,7 @@ function EnemyView:PlaySpineAnim(gog, time, name, isLoop)
local _complete = nil
_complete = function(state)
gog.AnimationState.Complete = gog.AnimationState.Complete - _complete
if endWith(gog.gameObject.name, "skill") then
if endWith(gog.gameObject.name, "skill") or endWith(gog.gameObject.name, "gx") then
gog.gameObject:SetActive(false)
else
gog.AnimationState:SetAnimation(0, "idle", true)
@ -722,8 +722,9 @@ function EnemyView:OnceDamaged(atkRole, dmg, bCrit, finalDmg, damageType, dotTyp
--if self.isDead then return end
if dotType then
if dotType == DotType.Poison then
self.Floater:ArtFloating(ArtFloatingType.PoisonDamage, ArtFloatingColor.Poison, dmg,
TextFloatingColor.DarkGreen, t, pos)
--self.Floater:ArtFloating(ArtFloatingType.PoisonDamage, ArtFloatingColor.Poison, dmg,
--TextFloatingColor.DarkGreen, t, pos)
self.Floater:ArtFloating(ArtFloatingType.PoisonDamage, ArtFloatingColor.Poison, dmg, t, pos)
elseif dotType == DotType.Burn then
self.Floater:ArtFloating(ArtFloatingType.FireDamage, ArtFloatingColor.Fire, dmg, t, pos)
elseif dotType == DotType.Blooding then

View File

@ -533,7 +533,7 @@ function PlayerView:PlaySpineAnim(gog, time, name, isLoop)
gog.AnimationState.Complete = gog.AnimationState.Complete - _complete
self.currAniName="idle"
if endWith(gog.gameObject.name,"skill") then
if endWith(gog.gameObject.name,"skill") or endWith(gog.gameObject.name,"gx") then
gog.gameObject:SetActive(false)
else
gog.AnimationState:SetAnimation(0, "idle", true)
@ -640,7 +640,7 @@ function PlayerView:OnSkillCastingStart(type)
-- coroutine.start(function()
-- coroutine.wait(1.1)
-- end)
self:PlaySpineAnim(self.RoleLiveGOGraphic2, 0,name, false)
end

View File

@ -1237,7 +1237,7 @@ function this.OnEndDrag(Pointgo,data)--结束拖动
local heroObj=Util.GetGameObject(this.gameObject,"Hero".._j)
heroObj:GetComponent("Image").raycastTarget = true
heroObj.transform:DOScale(Vector3.one * 1, 0.15)
heroObj.transform:DOAnchorPos(Vector3.one,0)
heroObj.transform:DOAnchorPos(Vector3.New(0,122,0),0)
heroObj.transform:SetParent(bgListGo[_j].transform)
heroObj.transform:SetSiblingIndex(1)