Скачать
How To Use Signals In Godot
Автор: Godot Guru
Загружено: 2024-09-08
Просмотров: 2297
Описание:
Hello everybody, today used signals in Godot which as always you can find on my discord at the about section.
Hope you enjoined watching.
Feel free to comment.
Make sure to like, share, and of course subscribe!
See you next time.
Code:
extends Control
signal start(num:int)
func _ready():
$Button.button_up.connect(button_up)
$Button.button_up.disconnect(_on_button_button_up)
start.emit(2)
func _on_button_button_down():
print("down")
func button_up():
print("up1")
func _on_start(num: int):
print(num)
func _on_button_button_up():
print("up2")
Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: