initial commit
This commit is contained in:
36
Keyboard.gd
Normal file
36
Keyboard.gd
Normal file
@@ -0,0 +1,36 @@
|
||||
extends Control
|
||||
#onready var tryNum = get_node("../Main.tryNum")
|
||||
var tryNum = 1
|
||||
# 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():
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
#func _process(delta):
|
||||
# pass
|
||||
|
||||
func tryCheck():
|
||||
var try
|
||||
if tryNum == 1:
|
||||
try = get_node("Try1")
|
||||
elif tryNum == 2:
|
||||
try = get_node("Try2")
|
||||
elif tryNum == 3:
|
||||
try = get_node("Try3")
|
||||
elif tryNum == 4:
|
||||
try = get_node("Try4")
|
||||
elif tryNum == 5:
|
||||
try = get_node("Try5")
|
||||
else:
|
||||
pass
|
||||
return try
|
||||
|
||||
|
||||
func _on_A_pressed():
|
||||
pass # Replace with function body.
|
||||
Reference in New Issue
Block a user