18 lines
444 B
C#
18 lines
444 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using BITKit;
|
|
namespace BITKit.Entities
|
|
{
|
|
public class EntityHitbox : EntityComponent,IDamagable
|
|
{
|
|
IEntity IDamagable.Entity => entity;
|
|
public Rigidbody Rigidbody => m_rigidbody;
|
|
public void GiveDamage(DamageMessage message)
|
|
{
|
|
entity.Invoke(message);
|
|
}
|
|
public Rigidbody m_rigidbody;
|
|
|
|
}
|
|
} |