mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-12-28 13:27:10 +01:00
32 lines
661 B
GDScript3
32 lines
661 B
GDScript3
|
tool
|
||
|
extends VisibilityNotifier
|
||
|
|
||
|
|
||
|
# Declare member variables here. Examples:
|
||
|
# var a = 2
|
||
|
# var b = "text"
|
||
|
|
||
|
|
||
|
# Called when the node enters the scene tree for the first time.
|
||
|
func _ready():
|
||
|
connect("screen_entered", self, "screen_enter")
|
||
|
connect("screen_exited", self, "screen_exit")
|
||
|
|
||
|
pass # Replace with function body.
|
||
|
|
||
|
func screen_enter():
|
||
|
print("screen_enter")
|
||
|
|
||
|
func screen_exit():
|
||
|
print("screen_exit")
|
||
|
|
||
|
func _notification(what):
|
||
|
if what == NOTIFICATION_ENTER_GAMEPLAY:
|
||
|
print("aaaa")
|
||
|
elif what == NOTIFICATION_EXIT_GAMEPLAY:
|
||
|
print("bbbb")
|
||
|
|
||
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||
|
#func _process(delta):
|
||
|
# pass
|