Audio manager implementation
This commit is contained in:
@@ -24,5 +24,6 @@ func _physics_process(delta: float) -> void:
|
||||
|
||||
func _on_body_entered(body: Node) -> void:
|
||||
if body.is_in_group("player"):
|
||||
AudioManager.play("pickup_scrap")
|
||||
RunManager.earn_credits(value)
|
||||
queue_free()
|
||||
@@ -86,6 +86,7 @@ func get_slow_factor() -> float:
|
||||
func take_damage(amount: float) -> void:
|
||||
current_health -= amount
|
||||
_flash_timer = 0.1
|
||||
AudioManager.play("enemy_hit")
|
||||
if current_health <= 0.0:
|
||||
_die()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user