伤害字修改

tcx_xiyou_bt_ios
PC-202302260912\Administrator 2024-05-16 18:03:56 +08:00
parent 7bf146d415
commit d2adf29b8a
1 changed files with 5 additions and 2 deletions

View File

@ -251,7 +251,10 @@ function FloatNode:ArtFloating(type, color, value,frameColor)
end
function FloatNode:ArtFloatingOnHook(type, color, value,frameColor)
function FloatNode:ArtFloatingOnHook(type, color, value,sort)
local go = BattleManager.LoadAsset(floatingEffect)
go.transform:SetParent(self.RootPanel.transform)
go.transform.localScale = Vector3.one * 0.5
@ -287,7 +290,7 @@ function FloatNode:ArtFloatingOnHook(type, color, value,frameColor)
--主要用于给白色字体染色成其他颜色color 参数只能填白色
-- 层级和动画
if anim then
anim:GetComponent("Canvas").sortingOrder = BattleManager.GetBattleSorting() + 100
anim:GetComponent("Canvas").sortingOrder = sort--BattleManager.GetBattleSorting() + 100
--anim:GetComponent("Animator"):Play(ArtFloatingAnim[type])
end