summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Avatar/Avatar.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Assets/Scripts/Avatar/Avatar.cs')
-rw-r--r--Assets/Scripts/Avatar/Avatar.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/Assets/Scripts/Avatar/Avatar.cs b/Assets/Scripts/Avatar/Avatar.cs
index 03cceccb..c44af96c 100644
--- a/Assets/Scripts/Avatar/Avatar.cs
+++ b/Assets/Scripts/Avatar/Avatar.cs
@@ -6,7 +6,7 @@ using UnityEngine;
/// <summary>
/// 角色,包括player和opponents
/// </summary>
-public class Avatar : MonoBehaviour, IInteractable
+public partial class Avatar : MonoBehaviour, IInteractable
{
public string Name;
@@ -106,6 +106,9 @@ public class Avatar : MonoBehaviour, IInteractable
public virtual void OnHurt(HurtInfo hurtInfo)
{
//Debug.Log("Hurt");
+ HitDefination hitDef = hurtInfo.hitDef;
+ if (hitDef != null)
+ ApplyHit(hitDef);
m_AbilitySystem.OnHurt(hurtInfo);
}