mirror of
https://github.com/danbulant/programovani-kostky
synced 2026-06-20 23:01:16 +00:00
16 lines
No EOL
295 B
GDScript
16 lines
No EOL
295 B
GDScript
extends Node3D
|
|
|
|
@onready var dice: Dice = $dice1
|
|
|
|
func _ready() -> void:
|
|
pass
|
|
|
|
func _process(_delta: float) -> void:
|
|
pass
|
|
|
|
func _unhandled_input(event: InputEvent) -> void:
|
|
if event.is_action_pressed("ui_accept"):
|
|
dice.random_throw()
|
|
|
|
func _on_dice_1_sleeping_state_changed() -> void:
|
|
pass |