mirror of
https://github.com/thegatesbrowser/godot-multiplayer.git
synced 2025-08-29 19:16:56 -04:00
copy from thegates-jam repo
This commit is contained in:
parent
c1a7ad74e1
commit
1a335de566
523 changed files with 22408 additions and 0 deletions
19
levels/portal/portal.gd
Normal file
19
levels/portal/portal.gd
Normal file
|
@ -0,0 +1,19 @@
|
|||
extends Node3D
|
||||
|
||||
signal portal_entered(url: String)
|
||||
|
||||
@export var url: String
|
||||
|
||||
|
||||
func _on_portal_entered(body):
|
||||
if not body is CharacterBody3D: return
|
||||
await get_tree().create_timer(0.2).timeout
|
||||
print("portal_entered: " + url)
|
||||
portal_entered.emit(url)
|
||||
|
||||
|
||||
func shut_down(_body) -> void:
|
||||
$Portal/MeshInstance3D.visible = false
|
||||
$Portal/MeshInstance3D2.visible = false
|
||||
$Portal/OmniLight3D.visible = false
|
||||
$Portal/CollisionShape3D.set_deferred("disabled", true)
|
Loading…
Add table
Add a link
Reference in a new issue