2021-05-10 15:40:34 +02:00
|
|
|
extends Spatial
|
2021-05-10 15:56:43 +02:00
|
|
|
signal clicked(dagger)
|
2021-05-10 15:40:34 +02:00
|
|
|
|
|
|
|
|
func _ready():
|
2021-05-10 15:56:43 +02:00
|
|
|
print("[Dagger#_ready]")
|
|
|
|
|
connect("clicked", self, "handle_piece_click")
|
|
|
|
|
|
|
|
|
|
func _on_Area_input_event(camera, event, click_position, click_normal, shape_idx):
|
|
|
|
|
print("[Dagger#_ready] You have clicked in dagger ...")
|
|
|
|
|
if event is InputEventMouseButton:
|
|
|
|
|
print("[Dagger#_ready] Click !! Click !!")
|
|
|
|
|
$dagger.free()
|