Activatable object implementation

This commit is contained in:
Segey Lapin
2019-07-26 15:21:42 +03:00
parent 790f4b43dd
commit 0f1655ac81
12 changed files with 2767 additions and 3 deletions

View 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