diff options
Diffstat (limited to 'Assets/Scripts/Test/SaionjiScript_Physics.cs')
-rw-r--r-- | Assets/Scripts/Test/SaionjiScript_Physics.cs | 49 |
1 files changed, 1 insertions, 48 deletions
diff --git a/Assets/Scripts/Test/SaionjiScript_Physics.cs b/Assets/Scripts/Test/SaionjiScript_Physics.cs index 1b296f43..b6fcb393 100644 --- a/Assets/Scripts/Test/SaionjiScript_Physics.cs +++ b/Assets/Scripts/Test/SaionjiScript_Physics.cs @@ -2,54 +2,7 @@ using System.Collections.Generic; using UnityEngine; -public partial class SaionjiScript : MonoBehaviour, IInteractable +public partial class SaionjiScript : Avatar { - public PhysicsBox[] m_Hitbox; - public PhysicsBox[] m_Hurtbox; - public PhysicsBody m_Body; - public PhysicsBox m_BodyCollider; - 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() - { - for(int i = 0;i < m_Hitbox.Length; ++i) - { - if(PhysicsWorld.Instance.HasCollision(m_Hitbox[i])) - { - return true; - } - } - return false; - } - - public bool IsHurt() - { - for (int i = 0; i < m_Hitbox.Length; ++i) - { - if (PhysicsWorld.Instance.HasCollision(m_Hurtbox[i])) - { - return true; - } - } - return false; - } } |