Fix activation range
This commit is contained in:
parent
b95246209a
commit
9e6763d2bb
2 changed files with 4 additions and 5 deletions
|
@ -2,8 +2,8 @@ extends Area2D
|
|||
|
||||
class_name ActivationRange
|
||||
|
||||
signal player_entered(player)
|
||||
signal player_left(player)
|
||||
signal player_entered()
|
||||
signal player_left()
|
||||
|
||||
func _ready():
|
||||
connect("body_entered", self, "_body_entered")
|
||||
|
@ -14,8 +14,8 @@ func in_range():
|
|||
|
||||
func _body_entered(body: Node):
|
||||
if body == $"/root/scene/world".player:
|
||||
emit_signal("player_entered", body)
|
||||
emit_signal("player_entered")
|
||||
|
||||
func _body_left(body: Node):
|
||||
if body == $"/root/scene/world".player:
|
||||
emit_signal("player_left", body)
|
||||
emit_signal("player_left")
|
||||
|
|
|
@ -15,7 +15,6 @@ void fragment() {
|
|||
vec4 tex = texture(TEXTURE, UV);
|
||||
COLOR = vec4(tex.rgb * 0., tex.a * 0.5);
|
||||
}"
|
||||
custom_defines = ""
|
||||
|
||||
[sub_resource type="ShaderMaterial" id=3]
|
||||
shader = SubResource( 2 )
|
||||
|
|
Reference in a new issue