1
This commit is contained in:
@@ -110,6 +110,7 @@ namespace BITKit.Entities
|
||||
}
|
||||
public interface IDamagable
|
||||
{
|
||||
string Tag { get; }
|
||||
IHealth Health { get; }
|
||||
IUnityEntity UnityEntity { get; }
|
||||
Rigidbody Rigidbody { get; }
|
||||
|
@@ -6,6 +6,8 @@ namespace BITKit.Entities
|
||||
{
|
||||
public class EntityHitbox : MonoBehaviour,IDamagable
|
||||
{
|
||||
public string Tag => tag is null ? base.tag : tag.Value;
|
||||
|
||||
public IHealth Health
|
||||
{
|
||||
get
|
||||
@@ -36,6 +38,7 @@ namespace BITKit.Entities
|
||||
}
|
||||
|
||||
[SerializeField]private Rigidbody m_rigidbody;
|
||||
[SerializeReference, SubclassSelector] private new IReference tag;
|
||||
|
||||
[Inject(true)]
|
||||
private IHealth _health;
|
||||
|
@@ -7,7 +7,8 @@
|
||||
"GUID:d525ad6bd40672747bde77962f1c401e",
|
||||
"GUID:49b49c76ee64f6b41bf28ef951cb0e50",
|
||||
"GUID:9354affc93e0f3e4a904785e7d4c0f59",
|
||||
"GUID:c56f2ae4d67b9b947a600c84225206a2"
|
||||
"GUID:c56f2ae4d67b9b947a600c84225206a2",
|
||||
"GUID:296866320aab85a42a0403bf684bac59"
|
||||
],
|
||||
"includePlatforms": [],
|
||||
"excludePlatforms": [],
|
||||
|
Reference in New Issue
Block a user