ShaoNv
parent
b62f5cba30
commit
99d20b854f
|
|
@ -205,7 +205,7 @@ function EnemyView:onCreate(go, role, position, root, isBoss, enemyId)
|
|||
self.rageSlider.fillAmount = self.role.Rage / 4
|
||||
self.rageText.gameObject:SetActive(false)
|
||||
self.rageText.text = ""
|
||||
self.currAniName = "Attack"--"fight"
|
||||
self.currAniName = "Stand"--"fight"
|
||||
self.effect_fly = Util.GetGameObject(go, "c_long_zhandou_lizi")
|
||||
self.effect_fly:SetActive(self.role.star >= 14)
|
||||
-- 伤害文字显示
|
||||
|
|
@ -486,7 +486,7 @@ function EnemyView:PlaySpineAnim(gog, time, name, isLoop)
|
|||
gog.AnimationState:SetAnimation(0, "Stand", true)--"fight"
|
||||
end
|
||||
|
||||
self.currAniName = "Attack"--"fight"
|
||||
self.currAniName = "Stand"--"fight"
|
||||
end
|
||||
gog.AnimationState:ClearTracks() -- 清除上一个动画的影响(修复概率攻击动画播放错误的问题)
|
||||
gog.AnimationState:SetAnimation(time, name, isLoop)
|
||||
|
|
|
|||
|
|
@ -352,9 +352,9 @@ function MonsterView:OnSkillCastingStart(skill)
|
|||
end
|
||||
|
||||
if self.isMainPlayer then
|
||||
self:PlaySpineAnim(self.RoleLiveGOGraphic2, 0, "Attack" , false)--"fight"
|
||||
self:PlaySpineAnim(self.RoleLiveGOGraphic2, 0, "Stand" , false)--"fight"
|
||||
else
|
||||
self:PlaySpineAnim(self.RoleLiveGOGraphic2, 0, "Attack" , false)
|
||||
self:PlaySpineAnim(self.RoleLiveGOGraphic2, 0, "Stand" , false)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -525,10 +525,11 @@ function PlayerView:PlaySpineAnim(gog, time, name, isLoop)
|
|||
return
|
||||
end
|
||||
if isLoop then
|
||||
LogError("===========================================")
|
||||
LogError("==========================================="..name)
|
||||
self.currAniName=name
|
||||
gog.AnimationState:SetAnimation(time, name, isLoop)
|
||||
else
|
||||
LogError("==========================================="..name)
|
||||
local _complete = nil
|
||||
_complete = function(state)
|
||||
gog.AnimationState.Complete = gog.AnimationState.Complete - _complete
|
||||
|
|
@ -537,7 +538,7 @@ function PlayerView:PlaySpineAnim(gog, time, name, isLoop)
|
|||
if endWith(gog.gameObject.name,"skill") then
|
||||
gog.gameObject:SetActive(false)
|
||||
else
|
||||
gog.AnimationState:SetAnimation(0, "Skill_01", true)
|
||||
gog.AnimationState:SetAnimation(0, "Stand", true)
|
||||
end
|
||||
end
|
||||
gog.AnimationState:ClearTracks() -- 清除上一个动画的影响(修复概率攻击动画播放错误的问题)
|
||||
|
|
|
|||
|
|
@ -558,7 +558,7 @@ function this:BattleLogic(curPos)
|
|||
if arr then
|
||||
for i = 1, #arr do
|
||||
local anim =arr[i]
|
||||
anim.anim.AnimationState:SetAnimation(0,"Attack",true)
|
||||
anim.anim.AnimationState:SetAnimation(0,"Stand",true)
|
||||
local arrow = Util.GetGameObject(anim.enemy,"attackArr")
|
||||
arrow:SetActive(true)
|
||||
this.SetArrowRot(arrow)
|
||||
|
|
|
|||
Loading…
Reference in New Issue