hitbox for gear and papierrolle

This commit is contained in:
Arthur
2022-12-11 09:14:49 +01:00
parent 44e18e0b55
commit 82fd7a610d
6 changed files with 43 additions and 9 deletions

View File

@@ -0,0 +1,10 @@
extends Node3D
func _on_area_3d_input_event(camera, event, position, normal, shape_idx):
if event is InputEventMouseButton:
if event.button_index == MOUSE_BUTTON_LEFT and event.pressed == true:
print("Credits/Spielbeschreibung")
#TODO: Richtige Szene Einfügen
get_tree().change_scene_to_file("res://Nodes/game.tscn")