Compare commits
2 Commits
ad773f68eb
...
03421264fd
Author | SHA1 | Date | |
---|---|---|---|
|
03421264fd | ||
|
4bde2b3a16 |
@ -55,16 +55,16 @@ func _process(_delta: float) -> void:
|
|||||||
|
|
||||||
func _physics_process(delta: float) -> void:
|
func _physics_process(delta: float) -> void:
|
||||||
## Process interactivity selection.
|
## Process interactivity selection.
|
||||||
var collider: Object = null
|
if id == multiplayer.get_unique_id():
|
||||||
if _line_of_sight.is_colliding():
|
var collider: Object = null
|
||||||
collider = _line_of_sight.get_collider(0)
|
if _line_of_sight.is_colliding():
|
||||||
if collider != _interaction_selection:
|
collider = _line_of_sight.get_collider(0)
|
||||||
if _interaction_selection != null:
|
if collider != _interaction_selection:
|
||||||
_interaction_selection.get_parent().mark_non_interactive()
|
if _interaction_selection != null:
|
||||||
if collider != null:
|
_interaction_selection.get_parent().mark_non_interactive()
|
||||||
collider.get_parent().mark_interactive()
|
if collider != null:
|
||||||
_interaction_selection = collider
|
collider.get_parent().mark_interactive()
|
||||||
|
_interaction_selection = collider
|
||||||
|
|
||||||
# Add the gravity.
|
# Add the gravity.
|
||||||
if not is_on_floor():
|
if not is_on_floor():
|
||||||
|
@ -52,7 +52,7 @@ func _on_body_entered(p_body: Node3D) -> void:
|
|||||||
_model.hide()
|
_model.hide()
|
||||||
_picking_area.collision_layer = 0
|
_picking_area.collision_layer = 0
|
||||||
_disable_body.rpc()
|
_disable_body.rpc()
|
||||||
|
_picking_area.collision_layer = 0
|
||||||
await _splash_small_sound.finished
|
await _splash_small_sound.finished
|
||||||
if _splash_small_quiet_sound.playing:
|
if _splash_small_quiet_sound.playing:
|
||||||
await _splash_small_quiet_sound.finished
|
await _splash_small_quiet_sound.finished
|
||||||
|
Loading…
Reference in New Issue
Block a user