diff options
Diffstat (limited to 'Assets/Scripts/Avatar/Conditions/Interactive/ConditionHurt.cs')
-rw-r--r-- | Assets/Scripts/Avatar/Conditions/Interactive/ConditionHurt.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Assets/Scripts/Avatar/Conditions/Interactive/ConditionHurt.cs b/Assets/Scripts/Avatar/Conditions/Interactive/ConditionHurt.cs new file mode 100644 index 00000000..8a76528d --- /dev/null +++ b/Assets/Scripts/Avatar/Conditions/Interactive/ConditionHurt.cs @@ -0,0 +1,20 @@ +using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+// hurtbox被击中
+public class ConditionHurt : ConditionBase
+{
+ IInteractable m_Obj;
+
+ public ConditionHurt(IInteractable obj)
+ {
+ m_Obj = obj;
+ }
+
+ public override bool Evaluate()
+ {
+ bool isHit = m_Obj.IsHit();
+ return isHit;
+ }
+}
|