feat: Enemies
This commit is contained in:
@@ -14,6 +14,9 @@ namespace Arena.Combat
|
||||
{
|
||||
[Tooltip("Optional prefab spawned in place of the object: debris, explosion...")]
|
||||
public GameObject SpawnOnDestroyed;
|
||||
|
||||
[Tooltip("All: hurt by everyone. Allied: only by enemy damage. Enemy: only by player damage.")]
|
||||
public Team Team = Team.All;
|
||||
}
|
||||
|
||||
#region FIELDS
|
||||
@@ -47,6 +50,8 @@ namespace Arena.Combat
|
||||
|
||||
#region PUBLIC METHODS
|
||||
|
||||
public Team Team => _settings.Team;
|
||||
|
||||
public void TakeDamage(DamageInfo damage)
|
||||
{
|
||||
_health.TakeDamage(damage);
|
||||
|
||||
Reference in New Issue
Block a user