1
This commit is contained in:
19
Unity/Scripts/Entity/Components/Hitbox/EntityHitbox.cs
Normal file
19
Unity/Scripts/Entity/Components/Hitbox/EntityHitbox.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
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 Rigidbody m_rigidbody;
|
||||
public void GiveDamage(DamageMessage message)
|
||||
{
|
||||
entity.Invoke<DamageMessage>(message);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user