2023-06-05 19:57:17 +08:00
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using UnityEngine;
|
|
|
|
using BITKit;
|
|
|
|
namespace BITKit.Entities
|
|
|
|
{
|
2023-07-17 10:23:47 +08:00
|
|
|
public class EntityHitbox : EntityComponent,IDamagable
|
2023-06-05 19:57:17 +08:00
|
|
|
{
|
2023-08-11 23:57:37 +08:00
|
|
|
IEntity IDamagable.Entity => entity;
|
2023-06-05 19:57:17 +08:00
|
|
|
public Rigidbody Rigidbody => m_rigidbody;
|
2023-07-17 10:23:47 +08:00
|
|
|
public void GiveDamage(DamageMessage message)
|
|
|
|
{
|
|
|
|
entity.Invoke(message);
|
|
|
|
}
|
2023-06-05 19:57:17 +08:00
|
|
|
public Rigidbody m_rigidbody;
|
2023-06-29 14:57:11 +08:00
|
|
|
|
2023-06-05 19:57:17 +08:00
|
|
|
}
|
|
|
|
}
|