2023-06-08 14:09:50 +08:00
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using UnityEngine;
|
|
|
|
using BITKit;
|
|
|
|
namespace BITKit.Entities
|
|
|
|
{
|
2023-08-12 01:43:24 +08:00
|
|
|
public class EntityHitbox : EntityComponent,IDamagable
|
2023-06-08 14:09:50 +08:00
|
|
|
{
|
2023-08-12 01:43:24 +08:00
|
|
|
IEntity IDamagable.Entity => entity;
|
2023-06-08 14:09:50 +08:00
|
|
|
public Rigidbody Rigidbody => m_rigidbody;
|
|
|
|
public void GiveDamage(DamageMessage message)
|
|
|
|
{
|
2023-08-12 01:43:24 +08:00
|
|
|
entity.Invoke(message);
|
2023-06-08 14:09:50 +08:00
|
|
|
}
|
2023-08-12 01:43:24 +08:00
|
|
|
public Rigidbody m_rigidbody;
|
|
|
|
|
2023-06-08 14:09:50 +08:00
|
|
|
}
|
|
|
|
}
|