summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Avatar/Conditions/Interactive/ConditionHit.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Assets/Scripts/Avatar/Conditions/Interactive/ConditionHit.cs')
-rw-r--r--Assets/Scripts/Avatar/Conditions/Interactive/ConditionHit.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/Assets/Scripts/Avatar/Conditions/Interactive/ConditionHit.cs b/Assets/Scripts/Avatar/Conditions/Interactive/ConditionHit.cs
new file mode 100644
index 00000000..d36cc538
--- /dev/null
+++ b/Assets/Scripts/Avatar/Conditions/Interactive/ConditionHit.cs
@@ -0,0 +1,21 @@
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+// hitbox击中
+public class ConditionHit : ConditionBase
+{
+ IInteractable m_Obj;
+
+ public ConditionHit(IInteractable obj)
+ {
+ m_Obj = obj;
+
+ }
+
+ public override bool Evaluate()
+ {
+ bool isHit = m_Obj.IsHit();
+ return isHit;
+ }
+}