oob
This commit is contained in:
parent
ce2677962e
commit
9bda7685a1
|
@ -0,0 +1,3 @@
|
|||
source_md5="55dea53eea36f6ad35e65b44213662da"
|
||||
dest_md5="228deed4860087efddb6df42ddfe5f04"
|
||||
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,23 @@
|
|||
[remap]
|
||||
|
||||
importer="wav"
|
||||
type="AudioStreamSample"
|
||||
path="res://.import/oob.wav-ba8fd936fc73ee5c7c2e525a503f94a1.sample"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/audio/oob.wav"
|
||||
dest_files=[ "res://.import/oob.wav-ba8fd936fc73ee5c7c2e525a503f94a1.sample" ]
|
||||
|
||||
[params]
|
||||
|
||||
force/8_bit=false
|
||||
force/mono=false
|
||||
force/max_rate=false
|
||||
force/max_rate_hz=44100
|
||||
edit/trim=false
|
||||
edit/normalize=false
|
||||
edit/loop_mode=2
|
||||
edit/loop_begin=0
|
||||
edit/loop_end=-1
|
||||
compress/mode=0
|
|
@ -0,0 +1,27 @@
|
|||
extends Area
|
||||
|
||||
|
||||
# Declare member variables here. Examples:
|
||||
# var a = 2
|
||||
# var b = "text"
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
#func _process(delta):
|
||||
# pass
|
||||
|
||||
|
||||
func _on_Area_body_entered(body):
|
||||
if body.get_parent() != Util.player:
|
||||
return
|
||||
$AudioStreamPlayer.stop()
|
||||
|
||||
func _on_Area_body_exited(body):
|
||||
if body.get_parent() != Util.player:
|
||||
return
|
||||
$AudioStreamPlayer.play()
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue