summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Test/SaionjiScript_Physics.cs
blob: 87794998796d767d2aa0c5057c89884ea0493109 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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;
	}
}