16 lines
285 B
GDScript
16 lines
285 B
GDScript
extends MapIndex
|
|
|
|
|
|
|
|
|
|
func _on_tool_button_pressed() -> void:
|
|
click_scene("scene_tower")
|
|
pass # Replace with function body.
|
|
func get_scene_global_pos(scene_id:String):
|
|
match scene_id:
|
|
"scene_tower":
|
|
return $TextureRect/ToolButton.global_position
|
|
_:return Vector2(0,0)
|
|
|
|
pass
|