generated from krampus/template-godot4
15 lines
331 B
GDScript3
15 lines
331 B
GDScript3
|
|
class_name Building extends Node2D
|
||
|
|
|
||
|
|
var is_placing: bool = false
|
||
|
|
var starting_coord: Vector2i
|
||
|
|
|
||
|
|
@onready var placement_point: Marker2D = %PlacementPoint
|
||
|
|
|
||
|
|
func building_entered(body: Node2D) -> void:
|
||
|
|
if body is Citizen:
|
||
|
|
print("Activate building effect!")
|
||
|
|
|
||
|
|
func _on_building_area_entered(area: Area2D) -> void:
|
||
|
|
print(area)
|
||
|
|
#pass
|