---@class W_DamageAnim_C:UUserWidget ---@field KillAnim UWidgetAnimation ---@field DamageAnim UWidgetAnimation ---@field Image_10 UImage ---@field Image_11 UImage ---@field Image_00 UImage ---@field Image_01 UImage --Edit Below-- ---@type W_DamageAnim_C local W_DamageAnim = { bInitDoOnce = false; }; function W_DamageAnim:Construct() UGCEventSystem.AddListener(EventType.PlayerCause, self.OnShowAnim, self) end function W_DamageAnim:OnShowAnim(Damage, IsKill) print("[W_DamageAnim_OnShowAnim]") if IsKill == true then self:PlayAnimation(self.KillAnim, 0, 1, EUMGSequencePlayMode.Forward, 1) else self:PlayAnimation(self.DamageAnim, 0, 1, EUMGSequencePlayMode.Forward, 1) end end -- function W_DamageAnim:Tick(MyGeometry, InDeltaTime) -- end -- function W_DamageAnim:Destruct() -- end return W_DamageAnim;