// --v-- Event Handler --v-- private void HandleOnPlayerOnDestruction(EntityDestructionContext context) { if (context == EntityDestructionContext.DESTROYED_BY_DAMAGE) { OnGameIsOver?.Invoke(); StopGame(_shouldPlayOutro); } }
// --v-- Event Handler --v-- private void HandleEnemyOnDestruction(EntityDestructionContext context) { RemoveEnemy(); }