Activatable object implementation
This commit is contained in:
18
proto2/furniture/training_basket.gd
Normal file
18
proto2/furniture/training_basket.gd
Normal file
@@ -0,0 +1,18 @@
|
||||
extends Spatial
|
||||
|
||||
# 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():
|
||||
add_to_group("activatable")
|
||||
|
||||
func get_act():
|
||||
return "Start training"
|
||||
func activate():
|
||||
print("Starting training...")
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
#func _process(delta):
|
||||
# pass
|
||||
Reference in New Issue
Block a user