diff options
author | chai <chaifix@163.com> | 2020-10-24 17:30:07 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2020-10-24 17:30:07 +0800 |
commit | 65ed53a40f990e895305ff17a5e48e3cd6b8785b (patch) | |
tree | 3333c6a9b19fa5602fd8827e582273f602452bec /Assets/Scripts/Test/SaionjiScript_Physics.cs | |
parent | 56a9b3bf4edc56e9c1dd502a469a7a0167751215 (diff) |
*物理系统
Diffstat (limited to 'Assets/Scripts/Test/SaionjiScript_Physics.cs')
-rw-r--r-- | Assets/Scripts/Test/SaionjiScript_Physics.cs | 41 |
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; + } +} |