Work on pickups and multiplayer
This commit is contained in:
@@ -2,17 +2,17 @@ class_name MapMarker extends Node3D
|
||||
|
||||
var target : Node3D
|
||||
|
||||
func register_target(target : Node3D) -> void:
|
||||
self.target = target
|
||||
func register_target(new_target : Node3D) -> void:
|
||||
target = new_target
|
||||
reposition()
|
||||
|
||||
func reposition() -> void:
|
||||
var loc = target.position
|
||||
position = Vector3(loc.x, position.y, loc.z)
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
func _process(_delta: float) -> void:
|
||||
if target:
|
||||
reposition()
|
||||
|
||||
func _on_hack_revealed(is_visible : bool) -> void:
|
||||
visible = is_visible
|
||||
func _on_hack_revealed(reveal : bool) -> void:
|
||||
visible = reveal
|
||||
|
||||
Reference in New Issue
Block a user