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