summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Test/SaionjiScript_Physics.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Assets/Scripts/Test/SaionjiScript_Physics.cs')
-rw-r--r--Assets/Scripts/Test/SaionjiScript_Physics.cs41
1 files changed, 41 insertions, 0 deletions
diff --git a/Assets/Scripts/Test/SaionjiScript_Physics.cs b/Assets/Scripts/Test/SaionjiScript_Physics.cs
new file mode 100644
index 00000000..87794998
--- /dev/null
+++ b/Assets/Scripts/Test/SaionjiScript_Physics.cs
@@ -0,0 +1,41 @@
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+public partial class SaionjiScript : MonoBehaviour, IInteractable
+{
+ public PhysicsBox m_Hitbox;
+ public PhysicsBox m_Hurtbox;
+
+ public PhysicsPrimitive[] GetAllPrimitive()
+ {
+ throw new System.NotImplementedException();
+ }
+
+ public PhysicsBox GetHitbox()
+ {
+ throw new System.NotImplementedException();
+ }
+
+ public PhysicsBox GetHurtbox()
+ {
+ throw new System.NotImplementedException();
+ }
+
+ public PhysicsPrimitive[] GetAllHit()
+ {
+ throw new System.NotImplementedException();
+ }
+
+ public bool IsHit()
+ {
+ bool isHit = PhysicsWorld.Instance.HasCollision(m_Hitbox);
+ return isHit;
+ }
+
+ public bool IsHurt()
+ {
+ bool isHurt = PhysicsWorld.Instance.HasCollision(m_Hurtbox);
+ return isHurt;
+ }
+}