summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Avatar/Hitbox.cs
blob: 5fd0cecfe16a17fafe09373ac55f0ce508664faa (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 Hitbox : 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.AddHitBox(this);
    }

}