Fix #10
This commit is contained in:
parent
54221054eb
commit
8616c8b431
2 changed files with 4 additions and 2 deletions
|
@ -16,7 +16,7 @@ func _ready():
|
|||
#func _process(delta):
|
||||
# pass
|
||||
|
||||
func shoot():
|
||||
remote func shoot():
|
||||
var casing_instance = casing.instance()
|
||||
casing_instance.global_transform = find_node("Ejector").global_transform
|
||||
|
||||
|
|
|
@ -116,7 +116,9 @@ func _physics_process(delta):
|
|||
|
||||
master func on_hit():
|
||||
health -= 30
|
||||
print(health)
|
||||
|
||||
if health <= 0:
|
||||
rpc("kill")
|
||||
|
||||
master func kill():
|
||||
health = 0
|
||||
|
|
Reference in a new issue