From 65ed53a40f990e895305ff17a5e48e3cd6b8785b Mon Sep 17 00:00:00 2001 From: chai Date: Sat, 24 Oct 2020 17:30:07 +0800 Subject: =?UTF-8?q?*=E7=89=A9=E7=90=86=E7=B3=BB=E7=BB=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/Test/SaionjiScript_Physics.cs | 41 ++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 Assets/Scripts/Test/SaionjiScript_Physics.cs (limited to 'Assets/Scripts/Test/SaionjiScript_Physics.cs') 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; + } +} -- cgit v1.1-26-g67d0