1
This commit is contained in:
@@ -4,13 +4,13 @@ using UnityEngine;
|
||||
using BITKit;
|
||||
namespace BITKit.Entities
|
||||
{
|
||||
public class EntityHitbox : EntityComponent,IDamagable
|
||||
public class EntityHitbox : EntityBehavior,IDamagable
|
||||
{
|
||||
IEntity IDamagable.Entity => entity;
|
||||
IUnityEntity IDamagable.UnityEntity => UnityEntity;
|
||||
public Rigidbody Rigidbody => m_rigidbody;
|
||||
public void GiveDamage(DamageMessage message)
|
||||
{
|
||||
entity.Invoke(message);
|
||||
UnityEntity.Invoke(message);
|
||||
}
|
||||
[SerializeField]private Rigidbody m_rigidbody;
|
||||
|
||||
|
Reference in New Issue
Block a user