Update layers for GameObjects and add EnemyDeathBehavior class

This commit is contained in:
2025-07-11 22:23:42 +02:00
parent 355add5a33
commit 7640c59e43
5 changed files with 262 additions and 10 deletions

View File

@@ -0,0 +1,15 @@
using Interfaces;
using UnityEngine;
namespace Systems
{
public class EnemyDeathBehavior : MonoBehaviour, IDeathBehavior
{
public void Die()
{
Destroy(gameObject);
// later let's add particle effects, sound effects, etc.
// and give player experience points
}
}
}