25 lines
452 B
GDScript
25 lines
452 B
GDScript
extends Interaction
|
|
|
|
func _ready():
|
|
add_action("Plan", plan, plan_check)
|
|
add_action("Build", build, build_check)
|
|
add_action("Demolish", demolish, demolish_check)
|
|
|
|
func build():
|
|
get_parent().build()
|
|
|
|
func build_check():
|
|
return get_parent().build_check()
|
|
|
|
func plan():
|
|
get_parent().plan()
|
|
|
|
func plan_check():
|
|
return get_parent().plan_check()
|
|
|
|
func demolish():
|
|
get_parent().demolish()
|
|
|
|
func demolish_check():
|
|
return get_parent().demolish_check()
|