refactor: clarify simulation ownership
This commit is contained in:
@@ -47,7 +47,6 @@ func _physics_process(delta: float) -> void:
|
||||
|
||||
|
||||
func _unhandled_input(event: InputEvent) -> void:
|
||||
# keep your camera mouse code here too
|
||||
if event.is_action_pressed("interact"):
|
||||
try_interact()
|
||||
|
||||
@@ -100,13 +99,6 @@ func try_harvest_resource_node() -> bool:
|
||||
return true
|
||||
|
||||
|
||||
func is_near(zone: Marker3D) -> bool:
|
||||
if zone == null:
|
||||
return false
|
||||
|
||||
return global_position.distance_to(zone.global_position) <= interaction_range
|
||||
|
||||
|
||||
func is_near_storage(storage_node: StorageNode) -> bool:
|
||||
if storage_node == null:
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user