Fix activation range

This commit is contained in:
Hamcha 2020-07-14 01:19:24 +02:00
parent b95246209a
commit 9e6763d2bb
Signed by: hamcha
GPG key ID: 41467804B19A3315
2 changed files with 4 additions and 5 deletions

View file

@ -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")

View file

@ -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 )