blob: b5bd738f150199858cc6a450a8001dfb6435f196 (
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
|
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Hurtbox : MonoBehaviour
{
[SerializeField]
private PhysicsBox m_BoxCollider;
public PhysicsBox Collider
{
get {
return m_BoxCollider;
}
}
[SerializeField]
private MonoBehaviour m_Host;
public IInteractable Host
{
get
{
return m_Host as IInteractable;
}
}
private void Awake()
{
HitManager.Instance.AddHurtBox(this);
}
}
|