18 lines
480 B
C#
18 lines
480 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using BITKit;
|
|
namespace BITKit.Entities
|
|
{
|
|
public class EntityHitbox : EntityBehavior,IDamagable
|
|
{
|
|
IUnityEntity IDamagable.UnityEntity => UnityEntity;
|
|
public Rigidbody Rigidbody => m_rigidbody;
|
|
public void GiveDamage(DamageMessage message)
|
|
{
|
|
UnityEntity.Invoke(message);
|
|
}
|
|
[SerializeField]private Rigidbody m_rigidbody;
|
|
|
|
}
|
|
} |