using System.Collections; using System.Collections.Generic; using UnityEngine; public partial class SaionjiScript : MonoBehaviour, IInteractable { 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; } }